Using Director > Behaviors > Creating and modifying behaviors > Events and actions in the Behavior Inspector |
![]() ![]() ![]() |
Events and actions in the Behavior Inspector
The actions and events included with Director are basic building blocks you can use to create simple or complex behaviors.
The Behavior Inspector makes the following events available:
Mouse Up indicates that the mouse button was released.
Mouse Down indicates that the mouse button was clicked.
Right Mouse Up indicates that the right mouse button was released. (On the Macintosh, Director treats a Control-click the same as a right mouse click on a Windows system.)
Right Mouse Down indicates that the right mouse button was clicked.
Mouse Enter indicates that the pointer entered a sprite's region.
Mouse Leave indicates that the pointer left a sprite's region.
Mouse Within indicates that the pointer is within the sprite's region.
Key Up indicates that a key was released.
Key Down indicates that a key was pressed.
Prepare Frame indicates that the playback head has left the previous frame but has not yet entered the next frame.
Enter Frame indicates that the playback head has entered the current frame.
Exit Frame indicates that the playback head has exited the current frame.
New Event indicates that a specified message was received from a script or behavior. You must specify a name for this event.
The Behavior Inspector makes the following actions available:
Go to Frame moves the playback head to the specified frame.
Go to Movie opens and plays the specified movie.
Go to Marker moves the playback head to the specified marker.
Go to Net Page goes to the specified URL.
Wait on Current Frame waits at the current frame until another behavior or script advances to the next frame.
Wait until Click waits at the current frame until the mouse button is clicked.
Wait until Key Press waits at the current frame until a key is pressed.
Wait for Time Duration waits at the current frame for the specified time.
Play Cast Member plays the specified sound cast member.
Play External File plays the specified external sound file.
Beep plays the current system beep.
Set Volume sets the system volume level to the specified setting.
Change Tempo changes the movie's tempo to the specified setting.
Perform Transition performs the specified transition.
Change Palette changes to the specified palette.
Change Location moves the current sprite to the specified coordinates.
Change Cast Member switches the sprite's cast member to the specified cast member.
Change Ink switches to the specified ink.
Change Cursor changes the pointer to a shape you choose from the pop-up menu.
Restore Cursor restores the current system pointer.
New Action executes any Lingo function or sends a message to a handler. You specify the new handler's name.
![]() ![]() ![]() |