User Guide

hyperlink 801
Description
Cast member property; accesses text and tags that control the layout of the text within an
HTML-formatted text cast member.
This property can be tested and set.
Example
This statement displays in the message window the HTML formatting information embedded in
the text cast member Home Page:
--Lingo syntax
put(member("Home Page").HTML)
// JavaScript syntax
trace(member("Home Page").HTML);
See also
importFileInto(), RTF
hyperlink
Usage
-- Lingo syntax
chunkExpression.hyperlink
// JavaScript syntax
chunkExpression.hyperlink;
Description
Text cast member property; returns the hyperlink string for the specified chunk expression in the
text cast member.
This property can be both tested and set.
When retrieving this property, the link containing the first character of
chunkExpression
is used.
Hyperlinks may not overlap. Setting a hyperlink over an existing link, even partially over it),
replaces the initial link with the new one.
Setting a hyperlink to an empty string removes it.
Example
The following handler creates a hyperlink in the first word of text cast member “MacroLink”. The
text is linked to Macromedias website.
--Lingo syntax
on startMovie
member("MacroLink").word[1].hyperlink = "http://www.macromedia.com"
end
// JavaScript syntax
function startMovie() {
member("MacroLink").getPropRef("word", 1).hyperlink =
"http://www.macromedia.com";
}