Tuesday, September 4, 2018

actionscript3 event handling

ad300
Advertisement

 List of events

Here is a short list of all (most?) events that can be generated by interactive objects with which a user can interact through mouse, keyboard, and the more general concept of focus. It also includes loading/modification events like animation entering a frame or an object being inserted to the stage.
For (very) technical information, consult in Adope ActionScript 3.0 Language and Components Reference: InteractiveObject (see also its subclasses) and Event (and subpages like MouseEvent)
Here is a list of events and mouse/keyboard/focus event properties:
EventDescriptionHappens in targetEvent property
activateDispatched when Flash Player gains operating system focus and becomes active.EventDispatcher
addedDispatched when a display object is added to the display list.DisplayObject
addedToStageDispatched when a display object is added to the on stage display list, either directly or through the addition of a sub tree in which the display object is contained.DisplayObject
clickDispatched when a user presses and releases the main button of the user's pointing device over the same InteractiveObject.InteractiveObjectMouseEvent.CLICK
deactivateDispatched when Flash Player loses operating system focus and is becoming inactive.EventDispatcher
doubleClickDispatched when a user presses and releases the main button of a pointing device twice in rapid succession over the same InteractiveObject when that object's doubleClickEnabled flag is set to true.InteractiveObjectMouseEvent.DOUBLE_CLICK
enterFrameDispatched when the playhead is entering a new frame.DisplayObject
focusInDispatched after a display object gains focus.InteractiveObjectFocusEvent.FOCUS_IN
focusOutDispatched after a display object loses focus.InteractiveObjectFocusEvent.FOCUS_OUT
keyDownDispatched when the user presses a key.InteractiveObjectKeyboardEvent.KEY_DOWN
keyFocusChangeDispatched when the user attempts to change focus by using keyboard navigation.InteractiveObjectFocusEvent.KEY_FOCUS_CHANGE
keyUpDispatched when the user releases a key.InteractiveObjectKeyboardEvent.KEY_UP
mouseDownDispatched when a user presses the pointing device button over an InteractiveObject instance in the Flash Player window.InteractiveObjectMouseEvent.MOUSE_DOWN
mouseFocusChangeDispatched when the user attempts to change focus by using a pointer device.InteractiveObjectFocusEvent.MOUSE_FOCUS_CHANGE
mouseMoveDispatched when a user moves the pointing device while it is over an InteractiveObject.InteractiveObjectMouseEvent.MOUSE_MOVE
mouseOutDispatched when the user moves a pointing device away from an InteractiveObject instance.InteractiveObjectMouseEvent.MOUSE_OUT
mouseOverDispatched when the user moves a pointing device over an InteractiveObject instance in the Flash Player window.InteractiveObjectMouseEvent.MOUSE_OVER
mouseUpDispatched when a user releases the pointing device button over an InteractiveObject instance in the Flash Player window.InteractiveObjectMouseEvent.MOUSE_UP
mouseWheelDispatched when a mouse wheel is spun over an InteractiveObject instance in the Flash Player window.InteractiveObjectMouseEvent.MOUSE_WHEEL
removedDispatched when a display object is about to be removed from the display list.DisplayObject
removedFromStageDispatched when a display object is about to be removed from the display list, either directly or through the removal of a sub tree in which the display object is contained.DisplayObject
renderDispatched when the display list is about to be updated and rendered.DisplayObject
rollOutDispatched when the user moves a pointing device away from an InteractiveObject instance.InteractiveObjectMouseEvent.ROLL_OUT
rollOverDispatched when the user moves a pointing device over an InteractiveObject instance.InteractiveObjectMouseEvent.ROLL_OVER
tabChildrenChangeDispatched when the value of the object's tabChildren flag changes.InteractiveObjectEvent.TAB_CHILDREN_CHANGE
tabEnabledChangeDispatched when the object's tabEnabled flag changes.InteractiveObjectEvent.TAB_ENABLED_CHANGE
tabIndexChangeDispatched when the value of the object's tabIndex property changes.InteractiveObjectEvent.TAB_INDEX_CHANGE
Share This
Previous Post
Next Post

Pellentesque vitae lectus in mauris sollicitudin ornare sit amet eget ligula. Donec pharetra, arcu eu consectetur semper, est nulla sodales risus, vel efficitur orci justo quis tellus. Phasellus sit amet est pharetra

0 comments:

Ad Section2

Sponsor

Ad Section