mx.core

# EventPriority - AS3 Flex

Package | mx.core
Class | public final class EventPriority
Inheritance | EventPriority Object

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The EventPriority class defines constant values for the `priority` argument of the `addEventListener()` method of EventDispatcher.

The higher the number, the higher the priority of the event listener. All listeners with priority `N` will be processed before listeners of priority `N - 1`. If two or more listeners share the same priority, they are processed in the order in which they were added.

Priorities can be positive, 0, or negative. The default priority is 0.

You should not write code that depends on the numeric values of these constants. They are subject to change in future versions of Flex.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Public Constants

| Constant | Defined By
--- | --- | ---
|  | BINDING : int = 100 [static] Autogenerated event handlers that evaluate data-binding expressions need to be executed before any others, so they have a higher priority than the default. | EventPriority
|  | CURSOR_MANAGEMENT : int = 200 [static] The CursorManager has handlers for mouse events which must be executed before other mouse event handlers, so they have a high priority. | EventPriority
|  | DEFAULT : int = 0 [static] Event handlers on component instances are executed with the default priority, 0. | EventPriority
|  | DEFAULT_HANDLER : int = -50 [static] Some components listen to events that they dispatch on themselves and let other listeners call the preventDefault() method to tell the component not to perform a default action. | EventPriority
|  | EFFECT : int = -100 [static] Autogenerated event handlers that trigger effects are executed after other event handlers on component instances, so they have a lower priority than the default. | EventPriority

Constant Detail

### BINDING

Constant

`public static const BINDING:int = 100`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Autogenerated event handlers that evaluate data-binding expressions need to be executed before any others, so they have a higher priority than the default.

### CURSOR_MANAGEMENT

Constant

`public static const CURSOR_MANAGEMENT:int = 200`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

The CursorManager has handlers for mouse events which must be executed before other mouse event handlers, so they have a high priority.

### DEFAULT

Constant

`public static const DEFAULT:int = 0`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Event handlers on component instances are executed with the default priority, `0`.

### DEFAULT_HANDLER

Constant

`public static const DEFAULT_HANDLER:int = -50`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Some components listen to events that they dispatch on themselves and let other listeners call the `preventDefault()` method to tell the component not to perform a default action. Those components must listen with a lower priority than the default priority, so that the other handlers are executed first and have a chance to call `preventDefault()`.

### EFFECT

Constant

`public static const EFFECT:int = -100`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Autogenerated event handlers that trigger effects are executed after other event handlers on component instances, so they have a lower priority than the default.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00