
Creating a hypertext link
171
6
To specify the cast members in which to search, select one of the following Search options:
Cast Member [Cast Member Name]
limits the search to the current cast member.
Cast [Cast Name]
limits the search to cast members in the current cast.
All Casts
extends the search to all cast members in all casts.
7
To set additional search options, select Wrap-Around, Whole Words Only, or Case Sensitive.
Wrap-Around
specifies whether Director returns to the beginning of text after it reaches the
end. If you select this option but not All Casts, Director continues searching from the top of
the current text after it reaches the bottom of the window. If you select both options, Director
searches all cast members of the same type (either text, field, or script, depending on where you
initiated the search), beginning with the currently selected cast member and returning to the
first cast member of that type if necessary.
Whole Words Only
searches only for occurrences of the specified whole word.
Case Sensitive
searches only for text with the same capitalization as the text in the Find box.
Creating a hypertext link
In the Text inspector, you can turn any selected range of text into a hypertext link that links to a
URL or initiates other actions. Director automatically adds standard hypertext link formatting to
the selected text so that it initially appears with blue underlining. You can turn off this formatting
in the Property inspector’s Text tab. For more information, see
“Setting text or field cast member
properties” on page 174
.
The following procedure describes how to add a hypertext link to selected text. To make a
hypertext link active, you must write an
on hyperlinkClicked
event handler. For more
information, see the Scripting Reference topics in the Director Help Panel.
You can enter any string in the Hyperlink text box; it does not have to be a URL. The string can’t
contain a double quotation mark or the script continuation character.
To define a hypertext link:
1
Select the text you want to define as a hypertext link.
2
Select Window > Text Inspector to open the Text inspector.
3
In the Hyperlink Data text box, enter the URL to which you want to link, or enter any message
you want to send to the
on
hyperlinkClicked
handler. Then press Enter (Windows) or Return
(Macintosh).
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...