API Documentation | All Packages | All Classes | Index | Frames No Frames |
AsyncEvent

Package | org.flexunit.events
Class | public class AsyncEvent
Inheritance | AsyncEvent 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

| Property | Defined By
--- | --- | ---
|  | originalEvent : Event A reference to the original event object fired by the developers test code. | AsyncEvent

Public Methods

| Method | Defined 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

originalEvent | property

`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`

Thu Apr 10 2014, 08:07 AM +10:00