Package | impression.resolver |
Class | public class LoaderInfoEx |
Inheritance | LoaderInfoEx ![]() |
Note that LoaderInfoEx does not extend the LoaderInfo object; rather, it
keeps an internal reference to the LoaderInfo. A LoaderInfoEx object should never
be created using the new
constructor, it should only be accessed from the
contentLoaderInfoEx
property of a LoaderEx object.
See also
Property | Defined By | ||
---|---|---|---|
actionScriptVersion : uint [read-only]
The ActionScript version of the loaded SWF file. | LoaderInfoEx | ||
active : Boolean [read-only]
true if the object is currently loading data. | LoaderInfoEx | ||
applicationDomain : ApplicationDomain [read-only]
When an external SWF file is loaded, all ActionScript 3.0 definitions contained in the loaded class are
stored in the applicationDomain property. | LoaderInfoEx | ||
bytes : ByteArray [read-only]
The bytes associated with a LoaderInfo object. | LoaderInfoEx | ||
bytesLoaded : uint [read-only]
The number of bytes that are loaded for the media. | LoaderInfoEx | ||
bytesTotal : uint [read-only]
The number of compressed bytes in the entire media file. | LoaderInfoEx | ||
childAllowsParent : Boolean [read-only]
Expresses the trust relationship from content (child) to the LoaderEx (parent). | LoaderInfoEx | ||
content : DisplayObject [read-only]
The loaded object associated with this LoaderInfoEx object. | LoaderInfoEx | ||
contentType : String [read-only]
The MIME type of the loaded file. | LoaderInfoEx | ||
frameRate : Number [read-only]
The nominal frame rate, in frames per second, of the loaded SWF file. | LoaderInfoEx | ||
height : int [read-only]
The nominal height of the loaded file. | LoaderInfoEx | ||
kbps : Number [read-only]
The bitrate at which the object is loading data. | LoaderInfoEx | ||
lastEvent : Event [read-only]
Returns a copy of the most recent event object dispatched. | LoaderInfoEx | ||
latency : Number [read-only]
The number of milliseconds between the time that the load request was issued and loading begins. | LoaderInfoEx | ||
loader : LoaderEx [read-only]
The LoaderEx object associated with this LoaderInfoEx object. | LoaderInfoEx | ||
loaderURL : String [read-only]
The URL of the SWF file that initiated the loading of the media described by this LoaderInfo object. | LoaderInfoEx | ||
parameters : Object [read-only]
An object that contains name-value pairs that represent the parameters provided to the loaded SWF file. | LoaderInfoEx | ||
parentAllowsChild : Boolean [read-only]
Expresses the trust relationship from Loader (parent) to the content (child). | LoaderInfoEx | ||
sameDomain : Boolean [read-only]
Expresses the domain relationship between the loader and the content: true if they have the same origin domain; false otherwise. | LoaderInfoEx | ||
sharedEvents : EventDispatcher [read-only]
An EventDispatcher instance that can be used to exchange events across security boundaries. | LoaderInfoEx | ||
swfVersion : uint [read-only]
The file format version of the loaded SWF file. | LoaderInfoEx | ||
url : String [read-only]
The URL of the media being loaded. | LoaderInfoEx | ||
width : int [read-only]
The nominal width of the loaded content. | LoaderInfoEx |
Method | Defined By | ||
---|---|---|---|
loaderInfo():LoaderInfo
Returns the object's internal loaderInfo object. | LoaderInfoEx |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the object receives a request to begin loading data. | LoaderInfoEx | |||
Dispatched when a load operation in progress is cancelled. | LoaderInfoEx | |||
Dispatched when data has loaded successfully. | LoaderInfoEx | |||
Dispatched when the object has finished loading data. | LoaderInfoEx | |||
Dispatched when a network request is made over HTTP and an HTTP status code can be detected. | LoaderInfoEx | |||
Dispatched when the properties and methods of a loaded SWF file are accessible and ready for use. | LoaderInfoEx | |||
Dispatched when an input or output error occurs that causes a load operation to fail. | LoaderInfoEx | |||
Dispatched when a load operation starts. | LoaderInfoEx | |||
Dispatched when data is received as the download operation progresses. | LoaderInfoEx | |||
Dispatched by a LoaderInfoEx object whenever a loaded object is removed by using the unload() method of the LoaderEx object, or when a second load is performed by the same LoaderEx object and the original content is removed prior to the load beginning. | LoaderInfoEx |
actionScriptVersion | property |
actionScriptVersion:uint
[read-only]
The ActionScript version of the loaded SWF file. The language version is specified by using the
enumerations in the ActionScriptVersion class, such as ActionScriptVersion.ACTIONSCRIPT2
and
ActionScriptVersion.ACTIONSCRIPT3
.
public function get actionScriptVersion():uint
See also
active | property |
active:Boolean
[read-only]
true
if the object is currently loading data.
public function get active():Boolean
applicationDomain | property |
applicationDomain:ApplicationDomain
[read-only]
When an external SWF file is loaded, all ActionScript 3.0 definitions contained in the loaded class are
stored in the applicationDomain
property.
public function get applicationDomain():ApplicationDomain
See also
bytes | property |
bytes:ByteArray
[read-only] The bytes associated with a LoaderInfo object.
public function get bytes():ByteArray
See also
bytesLoaded | property |
bytesLoaded:uint
[read-only]
The number of bytes that are loaded for the media. When this number equals the value of bytesTotal
,
all of the bytes are loaded.
public function get bytesLoaded():uint
See also
bytesTotal | property |
bytesTotal:uint
[read-only] The number of compressed bytes in the entire media file.
Before the first progress
event is dispatched by this object's corresponding LoaderEx object,
bytesTotal
is 0. After the first progress
event from the LoaderEx object,
bytesTotal
reflects the actual number of bytes to be downloaded.
public function get bytesTotal():uint
See also
childAllowsParent | property |
childAllowsParent:Boolean
[read-only]
Expresses the trust relationship from content (child) to the LoaderEx (parent). If the child has allowed the parent
access, true
; otherwise, false
. This property is set to true
if the child object
has called the allowDomain()
method to grant permission to the parent domain or if a URL policy is loaded
at the child domain that grants permission to the parent domain. If child and parent are in the same domain, this
property is set to true
.
public function get childAllowsParent():Boolean
See also
content | property |
content:DisplayObject
[read-only] The loaded object associated with this LoaderInfoEx object.
public function get content():DisplayObject
See also
contentType | property |
contentType:String
[read-only]
The MIME type of the loaded file. The value is null
if not enough of the file has loaded in order to
determine the type. The following list gives the possible values:
"application/x-shockwave-flash"
"image/jpeg"
"image/gif"
"image/png"
public function get contentType():String
See also
frameRate | property |
frameRate:Number
[read-only] The nominal frame rate, in frames per second, of the loaded SWF file. This number is often an integer, but need not be.
This value may differ from the actual frame rate in use. Flash Player or Adobe AIR only uses a single frame rate for all loaded SWF files at any one time, and this frame rate is determined by the nominal frame rate of the main SWF file. Also, the main frame rate may not be able to be achieved, depending on hardware, sound synchronization, and other factors.
public function get frameRate():Number
See also
height | property |
height:int
[read-only] The nominal height of the loaded file. This value might differ from the actual height at which the content is displayed, since the loaded content or its parent display objects might be scaled.
public function get height():int
See also
kbps | property |
kbps:Number
[read-only] The bitrate at which the object is loading data.
This value is calculated by dividing bytesLoaded
by elapsedTime
and adjusting by
a fixed factor to account for TCP/IP overhead.
public function get kbps():Number
lastEvent | property |
lastEvent:Event
[read-only] Returns a copy of the most recent event object dispatched.
Note that the last event does not include the ResolverEvent.BEGIN
or ResolverEvent.END
events. The
lastEvent
object is not reset when the load
method is invoked.
public function get lastEvent():Event
latency | property |
latency:Number
[read-only] The number of milliseconds between the time that the load request was issued and loading begins.
public function get latency():Number
loader | property |
loader:LoaderEx
[read-only] The LoaderEx object associated with this LoaderInfoEx object.
public function get loader():LoaderEx
See also
loaderURL | property |
loaderURL:String
[read-only] The URL of the SWF file that initiated the loading of the media described by this LoaderInfo object.
public function get loaderURL():String
See also
parameters | property |
parameters:Object
[read-only] An object that contains name-value pairs that represent the parameters provided to the loaded SWF file.
You can use a for-in
loop to extract all the names and values from the parameters
object.
The two sources of parameters are: the query string in the URL of the main SWF file, and the value of the
FlashVars
HTML parameter (this affects only the main SWF file).
The parameters
property replaces the ActionScript 1.0 and 2.0 technique of providing SWF file
parameters as properties of the main timeline.
The value of the parameters
property is null
for Loader objects that contain SWF files that
use ActionScript 1.0 or 2.0. It is only non-null
for Loader objects that contain SWF files that use
ActionScript 3.0.
public function get parameters():Object
See also
parentAllowsChild | property |
parentAllowsChild:Boolean
[read-only]
Expresses the trust relationship from Loader (parent) to the content (child). If the parent has allowed the child access,
true
; otherwise, false
. This property is set to true
if the parent object called
the allowDomain()
method to grant permission to the child domain or if a URL policy file is loaded at the
parent domain granting permission to the child domain. If child and parent are in the same domain, this property is set to
true
.
public function get parentAllowsChild():Boolean
See also
sameDomain | property |
sameDomain:Boolean
[read-only]
Expresses the domain relationship between the loader and the content: true
if they have the same origin domain; false
otherwise.
public function get sameDomain():Boolean
See also
sharedEvents | property |
sharedEvents:EventDispatcher
[read-only]
An EventDispatcher instance that can be used to exchange events across security boundaries. Even when the LoaderEx object and the loaded content originate
from security domains that do not trust one another, both can access sharedEvents
and send and receive events via this object.
public function get sharedEvents():EventDispatcher
See also
swfVersion | property |
swfVersion:uint
[read-only]
The file format version of the loaded SWF file. The file format is specified using the enumerations in the SWFVersion class, such as
SWFVersion.FLASH7
and SWFVersion.FLASH9
.
public function get swfVersion():uint
See also
url | property |
url:String
[read-only] The URL of the media being loaded.
Before the first progress
event is dispatched by this LoaderInfoEx object's corresponding LoaderEx object, the value
of the url
property might reflect only the initial URL specified in the call to the load()
method of the
LoaderEx object. After the first progress
event, the url
property reflects the media's final URL, after any
redirects and relative URLs are resolved.
public function get url():String
See also
width | property |
width:int
[read-only] The nominal width of the loaded content. This value might differ from the actual width at which the content is displayed, since the loaded content or its parent display objects might be scaled.
public function get width():int
See also
loaderInfo | () | method |
public function loaderInfo():LoaderInfo
Returns the object's internal loaderInfo object.
ReturnsLoaderInfo |
begin | Event |
impression.events.ResolverEvent
impression.events.ResolverEvent.BEGIN
Dispatched when the object receives a request to begin loading data.
This event is dispatched when the load
method is
invoked, either explicitly or implicitly as the result of calling the
loadAsset
method. This event will occur even if the request
is null
or cannot be loaded. This event will not occur if
the active
property value is true
.
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
close | Event |
flash.events.Event
flash.events.Event.CLOSE
Dispatched when a load operation in progress is cancelled.
This event is dispatched when the object is actively loading and the
the close
method is invoked.
See also
complete | Event |
flash.events.Event
flash.events.Event.COMPLETE
Dispatched when data has loaded successfully. In other words, it is dispatched when all the content
has been downloaded and the loading has finished. The complete
event is always dispatched
after the init
event. The init
event is dispatched when the object is ready
to access, though the content may still be downloading.
end | Event |
impression.events.ResolverEvent
impression.events.ResolverEvent.END
Dispatched when the object has finished loading data.
This event is dispatched when the object is no longer actively loading
data. This may be due to normal load completion, when an error occurs, or
by invoking the close
method.
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
httpStatus | Event |
flash.events.HTTPStatusEvent
flash.events.HTTPStatusEvent.HTTP_STATUS
Dispatched when a network request is made over HTTP and an HTTP status code can be detected.
init | Event |
flash.events.Event
flash.events.Event.INIT
Dispatched when the properties and methods of a loaded SWF file are accessible and ready
for use. The content, however, can still be downloading. A LoaderInfoEx object dispatches the
init
event when the following conditions exist:
For example, an Event.INIT
is dispatched when the first frame of a movie or
animation is loaded. The movie is then accessible and can be added to the display list. The
complete movie, however, can take longer to download. The Event.COMPLETE
is only
dispatched once the full movie is loaded.
The init
event always precedes the complete
event.
ioError | Event |
flash.events.IOErrorEvent
flash.events.IOErrorEvent.IO_ERROR
Dispatched when an input or output error occurs that causes a load operation to fail.
open | Event |
flash.events.Event
flash.events.Event.OPEN
Dispatched when a load operation starts.
progress | Event |
flash.events.ProgressEvent
flash.events.ProgressEvent.PROGRESS
Dispatched when data is received as the download operation progresses.
unload | Event |
flash.events.Event
flash.events.Event.UNLOAD
Dispatched by a LoaderInfoEx object whenever a loaded object is removed by using the unload()
method of the LoaderEx object, or when a second load is performed by the same LoaderEx object and the
original content is removed prior to the load beginning.