| Package | mx.events |
| Class | public class FlexEvent |
| Inheritance | FlexEvent Event Object |
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| FlexEvent | ||
![]() |
Duplicates an instance of an Event subclass.
| Event | |
![]() |
A utility function for implementing the
toString() method in your custom Event class. | Event | |
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Checks whether
preventDefault() has been called on the event. | Event | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Cancels an event's default behavior if that behavior can be canceled.
| Event | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Prevents processing of any event listeners in the current node and any subsequent nodes in
the event flow.
| Event | |
![]() |
Prevents processing of any event listeners in nodes subsequent to the current node in the
event flow.
| Event | |
![]() |
Returns a string containing all the properties of the Event object.
| Event | |
![]() |
Returns the primitive value of the specified object.
| Object | |
| Constant | Defined by | ||
|---|---|---|---|
![]() | ACTIVATE : String = "activate" [static]
Defines the value of the
type property of an activate event object. | Event | |
| ADD : String = "add" [static]
The
FlexEvent.ADD constant defines the value of the
type property of the event object for an add event. | FlexEvent | ||
![]() | ADDED : String = "added" [static]
Defines the value of the
type property of an added event object. | Event | |
| APPLICATION_COMPLETE : String = "applicationComplete" [static]
The
FlexEvent.APPLICATION_COMPLETE constant defines the value of the
type property of the event object for a applicationComplete event. | FlexEvent | ||
| BUTTON_DOWN : String = "buttonDown" [static]
The
FlexEvent.BUTTON_DOWN constant defines the value of the
type property of the event object for a buttonDown event. | FlexEvent | ||
![]() | CANCEL : String = "cancel" [static]
Defines the value of the
type property of a cancel event object. | Event | |
![]() | CHANGE : String = "change" [static]
Defines the value of the
type property of a change event object. | Event | |
![]() | CLOSE : String = "close" [static]
Defines the value of the
type property of a close event object. | Event | |
![]() | COMPLETE : String = "complete" [static]
Defines the value of the
type property of a complete event object. | Event | |
![]() | CONNECT : String = "connect" [static]
Defines the value of the
type property of a connect event object. | Event | |
| CREATION_COMPLETE : String = "creationComplete" [static]
The
FlexEvent.CREATION_COMPLETE constant defines the value of the
type property of the event object for a creationComplete event. | FlexEvent | ||
| CURSOR_UPDATE : String = "cursorUpdate" [static]
The
FlexEvent.CURSOR_UPDATE constant defines the value of the
type property of the event object for a cursorUpdate event. | FlexEvent | ||
| DATA_CHANGE : String = "dataChange" [static]
The
FlexEvent.DATA_CHANGE constant defines the value of the
type property of the event object for a dataChange event. | FlexEvent | ||
![]() | DEACTIVATE : String = "deactivate" [static]
Defines the value of the
type property of a deactivate event object. | Event | |
| ENTER : String = "enter" [static]
The
FlexEvent.ENTER constant defines the value of the
type property of the event object for a enter event. | FlexEvent | ||
![]() | ENTER_FRAME : String = "enterFrame" [static]
Defines the value of the
type property of an enterFrame event object. | Event | |
| ENTER_STATE : String = "enterState" [static]
The
FlexEvent.ENTER_STATE constant defines the value of the
type property of the event object for a enterState event. | FlexEvent | ||
| EXIT_STATE : String = "exitState" [static]
The
FlexEvent.EXIT_STATE constant defines the value of the
type property of the event object for a exitState event. | FlexEvent | ||
| HIDE : String = "hide" [static]
The
FlexEvent.HIDE constant defines the value of the
type property of the event object for a hide event. | FlexEvent | ||
![]() | ID3 : String = "id3" [static]
Defines the value of the
type property of an id3 event object. | Event | |
| IDLE : String = "idle" [static]
The
FlexEvent.IDLE constant defines the value of the
type property of the event object for a idle event. | FlexEvent | ||
![]() | INIT : String = "init" [static]
Defines the value of the
type property of an init event object. | Event | |
| INIT_COMPLETE : String = "initComplete" [static]
Dispatched when a Flex application finishes initialization.
| FlexEvent | ||
| INITIALIZE : String = "initialize" [static]
The
FlexEvent.INITIALIZE constant defines the value of the
type property of the event object for a initialize event. | FlexEvent | ||
| INIT_PROGRESS : String = "initProgress" [static]
Dispatched when the Flex application completes an initialization phase,
as defined by calls to the
measure(), commitProperties(),
or updateDisplayList() methods. | FlexEvent | ||
| INVALID : String = "invalid" [static]
The
FlexEvent.INVALID constant defines the value of the
type property of the event object for a invalid event. | FlexEvent | ||
![]() | MOUSE_LEAVE : String = "mouseLeave" [static]
Defines the value of the
type property of a mouseLeave event object. | Event | |
![]() | OPEN : String = "open" [static]
Defines the value of the
type property of an open event object. | Event | |
| PREINITIALIZE : String = "preinitialize" [static]
The
FlexEvent.PREINITIALIZE constant defines the value of the
type property of the event object for a preinitialize event. | FlexEvent | ||
| REMOVE : String = "remove" [static]
The
FlexEvent.REMOVE constant defines the value of the
type property of the event object for an remove event. | FlexEvent | ||
![]() | REMOVED : String = "removed" [static]
Defines the value of the
type property of a removed event object. | Event | |
![]() | RENDER : String = "render" [static]
Defines the value of the
type property of a render event object. | Event | |
| REPEAT : String = "repeat" [static]
The
FlexEvent.REPEAT constant defines the value of the
type property of the event object for a repeat event. | FlexEvent | ||
| REPEAT_END : String = "repeatEnd" [static]
The
FlexEvent.REPEAT_END constant defines the value of the
type property of the event object for a repeatEnd event. | FlexEvent | ||
| REPEAT_START : String = "repeatStart" [static]
The
FlexEvent.REPEAT_START constant defines the value of the
type property of the event object for a repeatStart event. | FlexEvent | ||
![]() | RESIZE : String = "resize" [static]
Defines the value of the
type property of a resize event object. | Event | |
![]() | SCROLL : String = "scroll" [static]
Defines the value of the
type property of a scroll event object. | Event | |
![]() | SELECT : String = "select" [static]
Defines the value of the
type property of a select event object. | Event | |
| SHOW : String = "show" [static]
The
FlexEvent.SHOW constant defines the value of the
type property of the event object for a show event. | FlexEvent | ||
![]() | SOUND_COMPLETE : String = "soundComplete" [static]
Defines the value of the
type property of a soundComplete event object. | Event | |
![]() | TAB_CHILDREN_CHANGE : String = "tabChildrenChange" [static]
Defines the value of the
type property of a tabChildrenChange event object. | Event | |
![]() | TAB_ENABLED_CHANGE : String = "tabEnabledChange" [static]
Defines the value of the
type property of a tabEnabledChange event object. | Event | |
![]() | TAB_INDEX_CHANGE : String = "tabIndexChange" [static]
Defines the value of the
type property of a tabIndexChange event object. | Event | |
| TRANSFORM_CHANGE : String = "transformChange" [static]
The
FlexEvent.TRANSFORM_CHANGE constant defines the value of the
type property of the event object for a transformChange event. | FlexEvent | ||
![]() | UNLOAD : String = "unload" [static]
Defines the value of the
type property of an unload event object. | Event | |
| UPDATE_COMPLETE : String = "updateComplete" [static]
The
FlexEvent.UPDATE_COMPLETE constant defines the value of the
type property of the event object for a updateComplete event. | FlexEvent | ||
| VALID : String = "valid" [static]
The
FlexEvent.VALID constant defines the value of the
type property of the event object for a valid event. | FlexEvent | ||
| VALUE_COMMIT : String = "valueCommit" [static]
The
FlexEvent.VALUE_COMMIT constant defines the value of the
type property of the event object for a valueCommit
event. | FlexEvent | ||
| FlexEvent | () | constructor |
public function FlexEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)Constructor.
Parameterstype:String — The event type; indicates the action that caused the event.
|
|
bubbles:Boolean (default = false) — Specifies whether the event can bubble up
the display list hierarchy.
|
|
cancelable:Boolean (default = false) — Specifies whether the behavior
associated with the event can be prevented.
|
| ADD | constant |
public static const ADD:String = "add"
The FlexEvent.ADD constant defines the value of the
type property of the event object for an add event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| APPLICATION_COMPLETE | constant |
public static const APPLICATION_COMPLETE:String = "applicationComplete"
The FlexEvent.APPLICATION_COMPLETE constant defines the value of the
type property of the event object for a applicationComplete event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| BUTTON_DOWN | constant |
public static const BUTTON_DOWN:String = "buttonDown"
The FlexEvent.BUTTON_DOWN constant defines the value of the
type property of the event object for a buttonDown event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| CREATION_COMPLETE | constant |
public static const CREATION_COMPLETE:String = "creationComplete"
The FlexEvent.CREATION_COMPLETE constant defines the value of the
type property of the event object for a creationComplete event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| CURSOR_UPDATE | constant |
public static const CURSOR_UPDATE:String = "cursorUpdate"
The FlexEvent.CURSOR_UPDATE constant defines the value of the
type property of the event object for a cursorUpdate event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| DATA_CHANGE | constant |
public static const DATA_CHANGE:String = "dataChange"
The FlexEvent.DATA_CHANGE constant defines the value of the
type property of the event object for a dataChange event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| ENTER | constant |
public static const ENTER:String = "enter"
The FlexEvent.ENTER constant defines the value of the
type property of the event object for a enter event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| ENTER_STATE | constant |
public static const ENTER_STATE:String = "enterState"
The FlexEvent.ENTER_STATE constant defines the value of the
type property of the event object for a enterState event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| EXIT_STATE | constant |
public static const EXIT_STATE:String = "exitState"
The FlexEvent.EXIT_STATE constant defines the value of the
type property of the event object for a exitState event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| HIDE | constant |
public static const HIDE:String = "hide"
The FlexEvent.HIDE constant defines the value of the
type property of the event object for a hide event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| IDLE | constant |
public static const IDLE:String = "idle"
The FlexEvent.IDLE constant defines the value of the
type property of the event object for a idle event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| INIT_COMPLETE | constant |
public static const INIT_COMPLETE:String = "initComplete"Dispatched when a Flex application finishes initialization. You use this event when creating a custom download progress bar.
This event is always dispatched once by the Preloader class, and is the last event that the Preloader dispatches. When this event is dispatched, the event listener should dispatch an Event.COMPLETE event.
A download progress bar must dispatch a complete
event after it has received an init_complete event.
The complete event informs the Preloader that the
download progress bar has completed all operations and can be dismissed.
A download progress bar can perform additional tasks,
such as playing an animation, after receiving
an init_complete event, and before dispatching
the complete event. Dispatching the complete
event should be the last action of the download progress bar.
The FlexEvent.INIT_COMPLETE constant defines the value of the
type property of the event object for a initComplete event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
See also
| INITIALIZE | constant |
public static const INITIALIZE:String = "initialize"
The FlexEvent.INITIALIZE constant defines the value of the
type property of the event object for a initialize event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| INIT_PROGRESS | constant |
public static const INIT_PROGRESS:String = "initProgress"
Dispatched when the Flex application completes an initialization phase,
as defined by calls to the measure(), commitProperties(),
or updateDisplayList() methods.
This event describes the progress of the application in the initialization phase.
You use this event when creating a custom download progress bar.
The FlexEvent.INIT_PROGRESS constant defines the value of the
type property of the event object for a initProgress event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
See also
| INVALID | constant |
public static const INVALID:String = "invalid"
The FlexEvent.INVALID constant defines the value of the
type property of the event object for a invalid event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| PREINITIALIZE | constant |
public static const PREINITIALIZE:String = "preinitialize"
The FlexEvent.PREINITIALIZE constant defines the value of the
type property of the event object for a preinitialize event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| REMOVE | constant |
public static const REMOVE:String = "remove"
The FlexEvent.REMOVE constant defines the value of the
type property of the event object for an remove event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| REPEAT | constant |
public static const REPEAT:String = "repeat"
The FlexEvent.REPEAT constant defines the value of the
type property of the event object for a repeat event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| REPEAT_END | constant |
public static const REPEAT_END:String = "repeatEnd"
The FlexEvent.REPEAT_END constant defines the value of the
type property of the event object for a repeatEnd event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| REPEAT_START | constant |
public static const REPEAT_START:String = "repeatStart"
The FlexEvent.REPEAT_START constant defines the value of the
type property of the event object for a repeatStart event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| SHOW | constant |
public static const SHOW:String = "show"
The FlexEvent.SHOW constant defines the value of the
type property of the event object for a show event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| TRANSFORM_CHANGE | constant |
public static const TRANSFORM_CHANGE:String = "transformChange"
The FlexEvent.TRANSFORM_CHANGE constant defines the value of the
type property of the event object for a transformChange event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| UPDATE_COMPLETE | constant |
public static const UPDATE_COMPLETE:String = "updateComplete"
The FlexEvent.UPDATE_COMPLETE constant defines the value of the
type property of the event object for a updateComplete event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| VALID | constant |
public static const VALID:String = "valid"
The FlexEvent.VALID constant defines the value of the
type property of the event object for a valid event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
| VALUE_COMMIT | constant |
public static const VALUE_COMMIT:String = "valueCommit"
The FlexEvent.VALUE_COMMIT constant defines the value of the
type property of the event object for a valueCommit
event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/2/langref/mx/events/FlexEvent.html