Packageimpression.events
Classpublic class ResolverEvent
InheritanceResolverEvent Inheritance flash.events.Event

An object dispatches a ResolverEvent object when resolver-related actions occur.



Public Properties
 PropertyDefined By
  relatedObject : *
[read-only] A reference to the related object.
ResolverEvent
Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined 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
Property Detail
relatedObjectproperty
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.


Implementation
    public function get relatedObject():*
Constructor Detail
ResolverEvent()Constructor
public function ResolverEvent(type:String = null, bubbles:Boolean = false, cancelable:Boolean = false, relatedObject:* = null)

Creates a new instance of a ResolverEvent object.

Parameters
type: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

Method Detail
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.

Returns
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]

Returns
String — A string containing all the properties of the ResolverEvent object.
Constant Detail
BEGINConstant
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:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetThe object that is actively processing the Event object with an event listener.
targetThe object that raised the event.
relatedObjectThe 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_TRANSACTIONConstant 
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:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetThe object that is actively processing the Event object with an event listener.
targetThe object that raised the event.
relatedObjectThe object associated with the event. For a ResolverEvent.BEGIN_TRANSACTION event, this value is always null.

ENDConstant 
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:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetThe object that is actively processing the Event object with an event listener.
targetThe object that raised the event.
relatedObjectThe 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_TRANSACTIONConstant 
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:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetThe object that is actively processing the Event object with an event listener.
targetThe object that raised the event.
relatedObjectThe object associated with the event. For a ResolverEvent.END_TRANSACTION event, this value is always null.