296
This property can be tested but not set.
Like
hyperLink
and
hyperLinkState
, the returned range of the link contains the first character
of
chunkExpression
.
See also
hyperlink
,
hyperlinkState
hyperlinks
Syntax
chunkExpression
.hyperlinks
Description
Text cast member property; returns a linear list containing all the hyperlink ranges for the
specified chunk of a text cast member. Each range is given as a linear list with two elements, one
for the starting character of the link and one for the ending character.
Example
This statement returns all the links for the text cast member Glossary to the message window:
put member("Glossary").hyperlinks
-- [[3, 8], [10, 16], [41, 54]]
hyperlinkState
Syntax
textChunk
.hyperlinkState
Description
Text cast member property; contains the current state of the hyperlink. Possible values for the
state are:
#normal
,
#active
, and
#visited
.
This property can be tested and set.
Like
hyperLink
and
hyperLinkRange
, the returned range of the link contains the first character
of
chunkExpression
.
Example
The following handler checks to see if the hyperlink clicked is a web address. If it is, the state of
the hyperlink text state is set to #visited, and the movie branches to the web address.
property spriteNum
on hyperlinkClicked me, data, range
if data starts "http://" then
currentMember = sprite(spriteNum).member
currentMember.word[4].hyperlinkState = #visited
goToNetPage(data)
end if
end
See also
hyperlink
,
hyperlinkRange
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...