Event Handlers
Top  Previous  Next


Each Scripting Object can be supplied with an Event Handling routine so that specific script Actions occur in response to pre-defined Event conditions.

The following Event Handling routines are supplied:

·on(mouseEvent): used for buttons only. Defines Actions to be performed when a defined mouse or keyboard Action occurs. The Actions are always applied to the top level or _root Movie  
·onEnterFrame(): defines the Actions to occur at the start of each Frame  
·onFrame(): defines the Actions to occur in a specific Frame  
·onLoad(): defines the Actions to occur when the Object is loaded  
·onSelfEvent(mouseEvent): defines Actions to be performed when a defined mouse or keyboard Action occurs  
·onChanged(): used for Text Field Objects only. Defines the Actions to occur when the contained text changes.