Package | impression.events |
Class | public class ResolverEvent |
Inheritance | ResolverEvent ![]() |
Property | Defined By | ||
---|---|---|---|
relatedObject : * [read-only]
A reference to the related object. | ResolverEvent |
Method | Defined By | ||
---|---|---|---|
ResolverEvent(type:String = null, bubbles:Boolean = false, cancelable:Boolean = false, relatedObject:* = null)
Creates a new instance of a ResolverEvent object. | ResolverEvent | ||
clone():Event [override]
Duplicates an instance of the event object. | ResolverEvent | ||
toString():String [override]
Returns a string containing all the properties of the ResolverEvent object. | ResolverEvent |
Constant | Defined By | ||
---|---|---|---|
BEGIN : String = begin [static]
The ResolverEvent.BEGIN constant defines the value of the type property of a begin event object. | ResolverEvent | ||
BEGIN_TRANSACTION : String = beginTransaction [static]
The ResolverEvent.BEGIN_TRANSACTION constant defines the value of the type property of a begin transaction event object. | ResolverEvent | ||
END : String = end [static]
The ResolverEvent.END constant defines the value of the type property of an end event object. | ResolverEvent | ||
END_TRANSACTION : String = endTransaction [static]
The ResolverEvent.END_TRANSACTION constant defines the value of the type property of an end transaction event object. | ResolverEvent |
relatedObject | property |
relatedObject:*
[read-only] A reference to the related object.
For the ResolverEvent.BEGIN
and ResolverEvent.END
events, this value is non-null
.
If target
is a LoaderEx
, SoundEx
, or URLLoaderEx
object,
relatedObject
is the instance of the URLRequest object being processed. If target
is a
LoaderInfo
object, relatedObject
is a reference to the content object that originally dispatched the
event.
For the ResolverEvent.BEGIN_TRANSACTION
and ResolverEvent.END_TRANSACTION
events, this value is
always null
.
public function get relatedObject():*
ResolverEvent | () | Constructor |
public function ResolverEvent(type:String = null, bubbles:Boolean = false, cancelable:Boolean = false, relatedObject:* = null)
Creates a new instance of a ResolverEvent object.
Parameterstype:String (default = null ) — The type of the event. Event listeners can access this information through the inherited type property.
| |
bubbles:Boolean (default = false ) — Determines whether the event object participates in the bubbling phase of the event flow. Event listeners can access this information through the inheritied bubbles property.
| |
cancelable:Boolean (default = false ) — Determines whether the event object can be canceled. Event listeners can access this information through the inherited cancelable property.
| |
relatedObject:* (default = null ) — The object associated with the event. Event listeners can access this information through the relatedObject property.
|
See also
clone | () | method |
override public function clone():Event
Duplicates an instance of the event object.
Returns a new ResolverEvent object that is a copy of the original instance of the ResolverEvent 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
.
Event — A new ResolverEvent object that is identical to the original.
|
toString | () | method |
override public function toString():String
Returns a string containing all the properties of the ResolverEvent object. The string is in the following format:
[ResolverEvent type=value bubbles=value cancelable=value eventPhase=value relatedObject=value]
String — A string containing all the properties of the ResolverEvent object.
|
BEGIN | Constant |
public static const BEGIN:String = begin
The ResolverEvent.BEGIN constant defines the value of the type property of a begin event object. This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The object that raised the event. |
relatedObject | The object associated with the event.
If target is a LoaderEx , SoundEx , or URLLoaderEx object, relatedObject is the instance of the URLRequest object to load.
If target is a LoaderInfo object, relatedObject is the content object that originally dispatched the ResolverEvent.BEGIN event.
|
BEGIN_TRANSACTION | Constant |
public static const BEGIN_TRANSACTION:String = beginTransaction
The ResolverEvent.BEGIN_TRANSACTION constant defines the value of the type property of a begin transaction event object. This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The object that raised the event. |
relatedObject | The object associated with the event. For a ResolverEvent.BEGIN_TRANSACTION event, this value is always null . |
END | Constant |
public static const END:String = end
The ResolverEvent.END constant defines the value of the type property of an end event object. This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The object that raised the event. |
relatedObject | The object associated with the event.
If target is a LoaderEx , SoundEx , or URLLoaderEx object, relatedObject is the instance of the URLRequest object to load.
If target is a LoaderInfo object, relatedObject is the content object that originally dispatched the ResolverEvent.BEGIN event.
|
END_TRANSACTION | Constant |
public static const END_TRANSACTION:String = endTransaction
The ResolverEvent.END_TRANSACTION constant defines the value of the type property of an end transaction event object. This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The object that raised the event. |
relatedObject | The object associated with the event. For a ResolverEvent.END_TRANSACTION event, this value is always null . |