Package | impression.resolver |
Class | public class ResolverInfo |
Inheritance | ResolverInfo ![]() |
If the owner
property is non-null
, the data provided by
this instance is for all requests processed through the instance of the AssetResolver
object identified by the resolver
property that specify the owner
property value as the owner of the request.
If the owner
property is null
, the data provided by
this instance is for all requests processed through the instance of the AssetResolver
object identified by the resolver
property, regardless of the request's
owner.
A ResolverInfo object should never be created using the new
constructor, it should only be accessed from an AssetResolver via the getOwnerInfo()
or registerOwner()
methods.
Property | Defined By | ||
---|---|---|---|
bytesLoaded : Number [read-only]
The total number of bytes loaded by all items. | ResolverInfo | ||
bytesTotal : Number [read-only]
The total number of bytes in all files loaded by all items. | ResolverInfo | ||
itemsActive : Number [read-only]
The number of items currently loading data. | ResolverInfo | ||
itemsTotal : Number [read-only]
The total number of active and inactive items. | ResolverInfo | ||
kbpsAverage : Number [read-only]
The average of the kbps property values for all items. | ResolverInfo | ||
kbpsTotal : Number [read-only]
The sum of the kbps property values for all items. | ResolverInfo | ||
latencyAverage : Number [read-only]
The average of the latency property values for all items. | ResolverInfo | ||
latencyTotal : Number [read-only]
The sum of the latency property values for all items. | ResolverInfo | ||
owner : * [read-only]
The scope object associated with this instance. | ResolverInfo | ||
resolver : AssetResolver [read-only]
The AssetResolver object associated with this instance. | ResolverInfo | ||
transactionActive : Boolean [read-only]
true if the owner or the AssetResolver is in transaction mode. | ResolverInfo | ||
transactionCancelled : Boolean [read-only]
true if transaction mode for the owner or the AssetResolver was cancelled. | ResolverInfo | ||
transactionEnded : Boolean [read-only]
true if the owner or the AssetResolver was placed in transaction mode, and
is no longer in transaction mode. | ResolverInfo | ||
transactionStarted : Boolean [read-only]
true if the owner or the AssetResolver is in transaction mode, and
at least one item in the scope of the ResolverInfo object has begun loading. | ResolverInfo |
Method | Defined By | ||
---|---|---|---|
clear():void
Resets the aggregate statistics. | ResolverInfo |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when an item within the scope of the ResolverInfo object receives a request to begin loading data. | ResolverInfo | |||
Dispatched when the first item since the owner or AssetResolver was placed into transaction mode begins loading data. | ResolverInfo | |||
Dispatched when an item within the scope of the ResolverInfo object has finished loading data. | ResolverInfo | |||
Dispatched when the last active item since the owner's or AssetResolver's transaction mode was ended has finished loading data. | ResolverInfo | |||
Dispatched when data is received as a download operation progresses for any item within the scope of the ResolverInfo object. | ResolverInfo |
bytesLoaded | property |
bytesLoaded:Number
[read-only] The total number of bytes loaded by all items.
public function get bytesLoaded():Number
See also
bytesTotal | property |
bytesTotal:Number
[read-only] The total number of bytes in all files loaded by all items.
public function get bytesTotal():Number
See also
itemsActive | property |
itemsActive:Number
[read-only] The number of items currently loading data.
public function get itemsActive():Number
itemsTotal | property |
itemsTotal:Number
[read-only] The total number of active and inactive items.
public function get itemsTotal():Number
See also
kbpsAverage | property |
kbpsAverage:Number
[read-only]
The average of the kbps
property values for all items.
public function get kbpsAverage():Number
See also
kbpsTotal | property |
kbpsTotal:Number
[read-only]
The sum of the kbps
property values for all items.
public function get kbpsTotal():Number
See also
latencyAverage | property |
latencyAverage:Number
[read-only]
The average of the latency
property values for all items.
public function get latencyAverage():Number
See also
latencyTotal | property |
latencyTotal:Number
[read-only]
The sum of the latency
property values for all items.
public function get latencyTotal():Number
See also
owner | property |
owner:*
[read-only] The scope object associated with this instance.
If this property value is null
, information and events available from this
object are applicable to all objects that use the resolver referenced by the resolver
property. If this property value is non-null
, information and events available
from this object are applicable only to those objects whose owner
property value
matches this value.
public function get owner():*
resolver | property |
resolver:AssetResolver
[read-only] The AssetResolver object associated with this instance.
public function get resolver():AssetResolver
transactionActive | property |
transactionActive:Boolean
[read-only]
true
if the owner or the AssetResolver is in transaction mode.
An item is in transaction mode if the beginOwnerTransaction()
method
(for an owner) or the beginTransaction()
method (for an AssetResolver) has
been invoked, and the endOwnerTransaction()
, the endTransaction
,
cancelOwnerTransaction()
, the cancelTransaction
methods, as
appropriate, have not been invoked since the begin method was invoked.
Note that placing an owner or resolver into transaction mode does not cause the
ResolverEvent.BEGIN_TRANSACTION
event to be dispatched. This event will
be dispatched when an item in the scope of the ResolverInfo object begins loading.
public function get transactionActive():Boolean
See also
transactionCancelled | property |
transactionCancelled:Boolean
[read-only]
true
if transaction mode for the owner or the AssetResolver was cancelled.
Transaction mode is canclled by invoking the cancelOwnerTransaction()
or the
cancelTransaction()
, as appropriate.
public function get transactionCancelled():Boolean
See also
transactionEnded | property |
transactionEnded:Boolean
[read-only]
true
if the owner or the AssetResolver was placed in transaction mode, and
is no longer in transaction mode.
Transaction mode may have ended by invoking the endOwnerTransaction()
,
endTransaction()
, cancelOwnerTransaction()
, or the
cancelTransaction()
methods, as appropriate. Depending on the method used
to end transaction mode, the ResolverEvent.END_TRANSACTION
event may be
dispatched when this property value is changed to true
.
public function get transactionEnded():Boolean
See also
transactionStarted | property |
transactionStarted:Boolean
[read-only]
true
if the owner or the AssetResolver is in transaction mode, and
at least one item in the scope of the ResolverInfo object has begun loading.
The ResolverEvent.BEGIN_TRANSACTION
event will be dispatched when this property
value is changed to true
.
public function get transactionStarted():Boolean
See also
clear | () | method |
public function clear():void
Resets the aggregate statistics.
This method resets both the active and inactive statistics. Note that if items are still active, the active statistics will be updated when the next lifecycle event for an active object occurs.
begin | Event |
impression.events.ResolverEvent
impression.events.ResolverEvent.BEGIN
Dispatched when an item within the scope of the ResolverInfo object receives a request to begin loading data. This event
is dispatched after them item dispatches a ResolverEvent.BEGIN
event.
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.
|
See also
beginTransaction | Event |
impression.events.ResolverEvent
impression.events.ResolverEvent.BEGIN_TRANSACTION
Dispatched when the first item since the owner or AssetResolver was placed into transaction mode begins loading data.
Note that this event occurs before the ResolverInfo dispatches the ResolverEvent.BEGIN
method. If both
the AssetResolver and a specific owner have been placed into transaction mode, when an item in scope begins loading, the
following events are dispatched, in order:
ResolverEvent.BEGIN_TRANSACTION
event.ResolverEvent.BEGIN_TRANSACTION
event.ResolverEvent.BEGIN
event.ResolverEvent.BEGIN
event.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 . |
See also
end | Event |
impression.events.ResolverEvent
impression.events.ResolverEvent.END
Dispatched when an item within the scope of the ResolverInfo object has finished loading data. This event
is dispatched after the item dispatches a ResolverEvent.BEGIN
event.
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.
|
See also
endTransaction | Event |
impression.events.ResolverEvent
impression.events.ResolverEvent.END_TRANSACTION
Dispatched when the last active item since the owner's or AssetResolver's transaction mode was ended has finished
loading data. This event is dispathced after the item dispatches a ResolverEvent.END
event.
Note that this event occurs after the ResolverInfo dispatches the ResolverEvent.END
method. If both
the AssetResolver and a specific owner were in transaction mode, when an item in scope finishes loading, the
following events are dispatched, in order:
ResolverEvent.END
event.ResolverEvent.END_TRANSACTION
event.ResolverEvent.END
event.ResolverEvent.END_TRANSACTION
event.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 . |
See also
progress | Event |
flash.events.ProgressEvent
flash.events.ProgressEvent.PROGRESS
Dispatched when data is received as a download operation progresses for any item within the scope of the ResolverInfo object.
Note that when the ResolverInfo object dispatches this event, the
bytesLoaded
and bytesTotal
property values of the event
correspond to the ResolverInfo object's bytesLoaded
and bytesTotal
property values, not the values of the item that originally reported progress.