Packageorg.flexunit.events
Classpublic class AsyncEvent
InheritanceAsyncEvent Inheritance flash.events.Event

An AsyncEvent is fired by the AsyncHandler when an asynchronous event, registered by the TestCase, fires. The AsyncEvent contains a referenced, originalEvent, to the originalEvent fired for future consumption. TestCase instances listen for this event on AsyncHandler instances.



Public Properties
 PropertyDefined By
  originalEvent : Event
A reference to the original event object fired by the developers test code.
AsyncEvent
Public Methods
 MethodDefined By
  
AsyncEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, originalEvent:Event = null)
Constructor.
AsyncEvent
  
clone():Event
[override] Called by the framework to facilitate any requisite event bubbling
AsyncEvent
Property Detail
originalEventproperty
public var originalEvent:Event

A reference to the original event object fired by the developers test code.

Constructor Detail
AsyncEvent()Constructor
public function AsyncEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, originalEvent:Event = null)

Constructor. This class has all of the properties of the event class in addition to the originalEvent property.

Parameters
type:String — The event type; indicates the action that triggered 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.
 
originalEvent:Event (default = null) — Event that originally triggered AsyncEvent.
Method Detail
clone()method
override public function clone():Event

Called by the framework to facilitate any requisite event bubbling

Returns
Event