
Using an animated color cursor in a movie
301
Using an animated color cursor in a movie
After you add an animated color cursor to the cast, use script to switch to the animated cursor
as you would any other cursor. You can set up an animated cursor as the movie’s cursor or a
sprite’s cursor.
To switch to an animated color cursor, use the following method:
cursor (member
whichCursorCastMember
)
For
whichCursorCastMember
, substitute a cast member name (surrounded by quotation marks)
or a cast member number. For example, the following sprite script changes the cursor to the cast
member named myCursor when the cursor is over the sprite:
on mouseEnter
cursor (member "myCursor")
end
To reset the cursor to the regular arrow cursor, specify a cursor type of -1 and do not use
parentheses. The following sample sprite script resets the cursor:
on mouseLeave
cursor -1
end
Note:
Do not place an animated color cursor cast member on the Stage.
For more information, see the Scripting Reference topics in the Director Help Panel.
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...