| Package | com.acleveraddress.net.multi_loader.items.types |
| Class | public class MultiLoaderSWFItem |
| Inheritance | MultiLoaderSWFItem MultiLoaderItem AbstractDisplay flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| applicationDomain : ApplicationDomain
Specifies the application domain to use for loading this item
| MultiLoaderSWFItem | ||
![]() | attempts : uint | MultiLoaderItem | |
![]() | bytesLoaded : Number | MultiLoaderItem | |
![]() | bytesTotal : Number | MultiLoaderItem | |
| checkPolicyFile : Boolean
Specifies whether Flash Player should attempt to download a cross-domain policy file
from the loaded object's server before beginning to load the object itself.
| MultiLoaderSWFItem | ||
| content : * [read-only]
When the asset is loaded the content is set to the loaded item - this is
an UNTYPED MovieClip, so suggested use would be:
var mc : MovieClip = myMultiLoaderInstance.getContent('my_mc') as MovieClip; or
var spr : Sprite = myMultiLoaderInstance.getContent('my_sprite') as Sprite;
| MultiLoaderSWFItem | ||
![]() | context : LoaderContext
The LoaderContext to be used, if necessary
| MultiLoaderItem | |
![]() | elapsedTime : uint | MultiLoaderItem | |
![]() | endTime : uint | MultiLoaderItem | |
![]() | errorMessage : String
In the event of an error, this is set to the error message
| MultiLoaderItem | |
![]() | hasFailed : Boolean | MultiLoaderItem | |
![]() | headers : Array
The array of headers to be sent with the request
| MultiLoaderItem | |
![]() | hostName : String | MultiLoaderItem | |
![]() | index : uint | MultiLoaderItem | |
![]() | isLoaded : Boolean | MultiLoaderItem | |
![]() | isLoading : Boolean | MultiLoaderItem | |
![]() | key : *
The key used to reference the item.
| MultiLoaderItem | |
![]() | originalPath : String
This is set to the original path, for use if preventCaching is being used
as well as a key, so that the original path may still be used to return
the item
| MultiLoaderItem | |
![]() | params : Object
The params object is for saving associated parameters into the loader item when you first
create it, so that you may retrieve them later, so you don't need to reference the creation
source again once it has loaded, eg
var item : MultiLoaderItem = ml.add(imageXML.source, {key: 'img_1');
item.params = {width: imageXML.width, height: imageXML.height};
ml.start();
... | MultiLoaderItem | |
![]() | path : String
The path to the resource - may be relative or absolute
| MultiLoaderItem | |
![]() | percentLoaded : Number | MultiLoaderItem | |
| policyFile : String
The policy file to download.
| MultiLoaderSWFItem | ||
![]() | preventCaching : Boolean
Whether this item should enforce a fresh load (true) or if it tries to load a
cached version.
| MultiLoaderItem | |
![]() | priority : int
The priority of this item - set to 0 by default
| MultiLoaderItem | |
![]() | retries : uint
How many times the loader should attempt to load the item after a failure.
| MultiLoaderItem | |
![]() | startTime : uint | MultiLoaderItem | |
![]() | type : String
The type of asset to load.
| MultiLoaderItem | |
![]() | urlRequest : URLRequest
The URLRequest created for the loading request if necessary
| MultiLoaderItem | |
![]() | weight : uint = 1
The loading weight to be used for analysing the loader's progress
| MultiLoaderItem | |
| Method | Defined by | ||
|---|---|---|---|
|
MultiLoaderSWFItem(path:String, type:String, props:Object = null, params:Object = null)
Creates a new MultiLoaderSWFItem object, and prepares it for loading
When loaded, the content of this is set to the loaded MovieClip object | MultiLoaderSWFItem | ||
|
dispose():void
Disposes of this item
| MultiLoaderSWFItem | ||
![]() |
init():void
Called when the item has been added to the loader
| MultiLoaderItem | |
|
load():void
Starts the item loading
| MultiLoaderSWFItem | ||
![]() |
onStarted():void
| MultiLoaderItem | |
|
stopLoad():void
Stops the item from loading
| MultiLoaderSWFItem | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
added(evt:Event):void
| AbstractDisplay | |
![]() |
addEvent(item:EventDispatcher, type:String, listener:Function, weakReference:Boolean = true, priority:int = 0):void
| AbstractDisplay | |
![]() |
addListeners(item:EventDispatcher):void
| MultiLoaderItem | |
|
completeHandler(evt:Event = null):void
| MultiLoaderSWFItem | ||
![]() |
httpStatusHandler(event:HTTPStatusEvent):void
| MultiLoaderItem | |
![]() |
ioErrorHandler(event:IOErrorEvent):void
| MultiLoaderItem | |
![]() |
loadingFailed(error:String):void
| MultiLoaderItem | |
![]() |
openHandler(event:Event):void
| MultiLoaderItem | |
|
progressHandler(event:ProgressEvent):void
| MultiLoaderSWFItem | ||
![]() |
removed(evt:Event):void
| AbstractDisplay | |
![]() |
removeEvent(item:EventDispatcher, type:String, listener:Function):void
| AbstractDisplay | |
![]() |
removeIfExists(child:DisplayObject, container:DisplayObjectContainer):void
| AbstractDisplay | |
![]() |
removeListeners(item:EventDispatcher):void
| MultiLoaderItem | |
![]() |
resize(evt:Event = null):void
| AbstractDisplay | |
![]() |
securityErrorHandler(event:SecurityErrorEvent):void
| MultiLoaderItem | |
| applicationDomain | property |
public var applicationDomain:ApplicationDomainSpecifies the application domain to use for loading this item
| checkPolicyFile | property |
public var checkPolicyFile:BooleanSpecifies whether Flash Player should attempt to download a cross-domain policy file from the loaded object's server before beginning to load the object itself. Specify the policy file to load via the policyFile property of this class
See also
| content | property |
content:* [read-only]
When the asset is loaded the content is set to the loaded item - this is
an UNTYPED MovieClip, so suggested use would be:
var mc : MovieClip = myMultiLoaderInstance.getContent('my_mc') as MovieClip; or
var spr : Sprite = myMultiLoaderInstance.getContent('my_sprite') as Sprite;
public function get content():*
| policyFile | property |
public var policyFile:StringThe policy file to download. Only downloaded if checkPolicyFile is set to true.
See also
| MultiLoaderSWFItem | () | constructor |
public function MultiLoaderSWFItem(path:String, type:String, props:Object = null, params:Object = null)
Creates a new MultiLoaderSWFItem object, and prepares it for loading
When loaded, the content of this is set to the loaded MovieClip object
path:String |
|
type:String |
|
props:Object (default = null) |
|
params:Object (default = null) |
| completeHandler | () | method |
protected override function completeHandler(evt:Event = null):voidParameters
evt:Event (default = null) |
| dispose | () | method |
public override function dispose():voidDisposes of this item
| load | () | method |
public override function load():voidStarts the item loading
| progressHandler | () | method |
protected override function progressHandler(event:ProgressEvent):voidParameters
event:ProgressEvent |
| stopLoad | () | method |
public override function stopLoad():voidStops the item from loading