Go to Marker
moves the playhead to the specified marker.
Go to Net Page
Wait on Current Frame
the next frame.
Wait until Click
Wait until Key Press
Wait for Time Duration
Play Cast Member
Play External File
Beep
plays the current system beep.
Set Volume
sets the system volume level to the specified setting.
Change Tempo
Perform Transition
Change Palette
Change Location
Change Cast Member
Change Ink
switches to the specified ink.
Change Cursor
Restore Cursor
New Action
executes any method or sends a message to a handler. You specify the new
handler's name.
Writing behaviors with Lingo or JavaScript syntax
If you are familiar with Lingo or JavaScript syntax, you can author your own behaviors.
A behavior is a Lingo or JavaScript syntax script with these additional features:
•
Each instance of the behavior has independent values for properties. The script uses a
statement to declare properties that can have independent values in each instance
property
of the behavior. For more information, see the Scripting Reference topics in the Director
Help Panel.
•
The same set of handlers can be shared by multiple sprites or frames.
The handlers in a behavior are basically the same as other handlers. Include as many handlers
as appropriate to implement the behavior.
A behavior is usually attached to multiple sprites or frames. As a result, the sprites and frames
share the same handlers. Director tracks which instance of the behavior is which by assigning
each instance a reference number. The variable
instance of the behavior is attached to.
In many cases, it is most efficient to create behaviors dedicated to specific tasks and then attach
a set of behaviors that perform together the variety of actions you want.
goes to the specified URL.
waits at the current frame until another behavior or script advances to
waits at the current frame until the mouse button is clicked.
waits at the current frame until a key is pressed.
waits at the current frame for the specified time.
plays the specified sound cast member.
plays the specified external sound file.
changes the movie's tempo to the specified setting.
performs the specified transition.
changes to the specified palette.
moves the current sprite to the specified coordinates.
switches the sprite's cast member to the specified cast member.
changes the pointer to a shape you select from the pop-up menu.
restores the current system pointer.
contains the reference for the object that the
me
Writing behaviors with Lingo or JavaScript syntax
281
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers