What's New in Director 8.5 > Controlling the 3D World > 3D Lingo events |
![]() ![]() ![]() |
3D Lingo events
Event handling lets you use the registerForEvent
command to specify a handler to run when a particular event occurs within a specific cast member. With the registerForEvent
command you specify the type of event that will trigger the handler, the handler name, and the script object that contains the handler. The script object can be a child script, an instance of a behavior attached to a sprite, or any other script. If the script object isn't specified, the handler is called in the first movie script in which it is found.
Use these commands to set up event handling:
Command |
Description |
Returns |
---|---|---|
|
The event
The
Any user-defined symbol: Registers to receive any user-defined event sent from a SendEvent call. |
|
|
Unregisters all events. |
Nothing. A Lingo error is generated if the operation fails. |
|
Sends an event named Similar to |
Nothing. A Lingo error is generated if the operation fails. |
![]() ![]() ![]() |