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 Macromedia's 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"; }

See also

hyperlinkRange, hyperlinkState