Access keys

EventMovieClip

Kind of class: class
Inherits from: DispatchableMovieClip < CoreMovieClip < MovieClip
Version: 01/24/07
Author: Aaron Clinger
Classpath: org.casaframework.movieclip.EventMovieClip
File last modified: Wednesday, 24 January 2007, 21:45:39
Dispatches MovieClip EventHandler notification using org.casaframework.event.EventDispatcher.
Example:
import org.casaframework.movieclip.EventMovieClip;

function movieClipLoad(sender_mc:MovieClip):Void {
    trace(sender_mc + " has loaded.");
}

function movieClipPress(sender_mc:MovieClip):Void {
    trace(sender_mc + " was pressed.");
}

this.attachMovie("eventMovieClip", "event_mc", 20);

this.event_mc.addEventObserver(this, EventMovieClip.EVENT_LOAD, "movieClipLoad");
this.event_mc.addEventObserver(this, EventMovieClip.EVENT_PRESS, "movieClipPress");
Events broadcast to listeners:
onData = function (sender_mc:MovieClip) {}
onDragOut = function (sender_mc:MovieClip) {}
onDragOver = function (sender_mc:MovieClip) {}
onEnterFrame = function (sender_mc:MovieClip) {}
onKeyDown = function (sender_mc:MovieClip) {}
onKeyUp = function (sender_mc:MovieClip) {}
onKillFocus = function (sender_mc:MovieClip) {}
onLoad = function (sender_mc:MovieClip) {}
onMouseDown = function (sender_mc:MovieClip) {}
onMouseMove = function (sender_mc:MovieClip) {}
onMouseUp = function (sender_mc:MovieClip) {}
onPress = function (sender_mc:MovieClip) {}
onRelease = function (sender_mc:MovieClip) {}
onReleaseOutside = function (sender_mc:MovieClip) {}
onRollOut = function (sender_mc:MovieClip) {}
onRollOver = function (sender_mc:MovieClip) {}
onSetFocus = function (sender_mc:MovieClip) {}
onUnload = function (sender_mc:MovieClip) {}

Class properties

EVENT_DATA

static EVENT_DATA:String = 'onData'
(read,write)

EVENT_DRAG_OUT

static EVENT_DRAG_OUT:String = 'onDragOut'
(read,write)

EVENT_DRAG_OVER

static EVENT_DRAG_OVER:String = 'onDragOver'
(read,write)

EVENT_ENTER_FRAME

static EVENT_ENTER_FRAME:String = 'onEnterFrame'
(read,write)

EVENT_KEY_DOWN

static EVENT_KEY_DOWN:String = 'onKeyDown'
(read,write)

EVENT_KEY_UP

static EVENT_KEY_UP:String = 'onKeyUp'
(read,write)

EVENT_KILL_FOCUS

static EVENT_KILL_FOCUS:String = 'onKillFocus'
(read,write)

EVENT_LOAD

static EVENT_LOAD:String = 'onLoad'
(read,write)

EVENT_MOUSE_DOWN

static EVENT_MOUSE_DOWN:String = 'onMouseDown'
(read,write)

EVENT_MOUSE_MOVE

static EVENT_MOUSE_MOVE:String = 'onMouseMove'
(read,write)

EVENT_MOUSE_UP

static EVENT_MOUSE_UP:String = 'onMouseUp'
(read,write)

EVENT_PRESS

static EVENT_PRESS:String = 'onPress'
(read,write)

EVENT_RELEASE

static EVENT_RELEASE:String = 'onRelease'
(read,write)

EVENT_RELEASE_OUTSIDE

static EVENT_RELEASE_OUTSIDE:String = 'onReleaseOutside'
(read,write)

EVENT_ROLL_OUT

static EVENT_ROLL_OUT:String = 'onRollOut'
(read,write)

EVENT_ROLL_OVER

static EVENT_ROLL_OVER:String = 'onRollOver'
(read,write)

EVENT_SET_FOCUS

static EVENT_SET_FOCUS:String = 'onSetFocus'
(read,write)

EVENT_UNLOAD

static EVENT_UNLOAD:String = 'onUnload'
(read,write)