Packageorg.as3coreaddendum.events
Classpublic class PriorityEvent
InheritancePriorityEvent Inheritance flash.events.Event

This event should be dispatched by objects that implement org.as3coreaddendum.system.IPriority interface and had its "priority" setter invoked. This way the object will inform that its priority was changed.

But if the object does not implement flash.events.IEventDispatcher interface, that's ok to not dispatch this event.



Public Properties
 PropertyDefined By
  priority : int
[read-only] description
PriorityEvent
Public Methods
 MethodDefined By
  
PriorityEvent(type:String, priority:int, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor, creates a new PriorityEvent object.
PriorityEvent
  
clone():Event
[override] Duplicates the instance of PriorityEvent object.
PriorityEvent
Public Constants
 ConstantDefined By
  CHANGED : String = org.as3coreaddendum.events.PriorityEvent.CHANGED
[static]
PriorityEvent
Property Detail
priorityproperty
priority:int  [read-only]

description


Implementation
    public function get priority():int
Constructor Detail
PriorityEvent()Constructor
public function PriorityEvent(type:String, priority:int, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor, creates a new PriorityEvent object.

Parameters
type:String — The type of the event, accessible as Event.type.
 
priority:int — The new priority value.
 
bubbles:Boolean (default = false) — Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
 
cancelable:Boolean (default = false) — Determines whether the Event object can be canceled. The default value is false.
Method Detail
clone()method
override public function clone():Event

Duplicates the instance of PriorityEvent object.

Returns a new PriorityEvent object that is a copy of the original instance of the PriorityEvent object. You do not normally call clone(); the EventDispatcher class calls it automatically when you redispatch an event—that is, when you call dispatchEvent(event) from a handler that is handling event.

The new PriorityEvent object includes all the properties of the original.

Returns
Event — A new PriorityEvent object that is identical to the original.
Constant Detail
CHANGEDConstant
public static const CHANGED:String = org.as3coreaddendum.events.PriorityEvent.CHANGED