Package | com.sibirjak.angara.utils |
Class | public class ImageAssetLoader |
Inheritance | ImageAssetLoader ![]() ![]() ![]() ![]() ![]() |
Implements | IDisplayAssetLoader |
After the URLLoaderDelegate has been completed, a new Flash Loader instance is initialised with the loaded binary data (ByteArray).
Its possible to specify a container the loaded content gets added automatically after it is ready to display.
Property | Defined by | ||
---|---|---|---|
![]() | bytesLoaded : uint
Returns the number of bytes already loaded.
| AbstractResourceLoader | |
![]() | bytesTotal : uint
Returns the number of bytes total.
| AbstractResourceLoader | |
![]() | callbackFunction : Function | AbstractResourceLoader | |
container : Sprite
Returns the previously defined container.
| ImageAssetLoader | ||
![]() | content : *
Returns a reference to the loaded content.
| AbstractResourceLoader | |
![]() | dataFormat : String | URLLoaderDelegate | |
![]() | failedLoadingTrials : uint
Returns the number of failed loading trails.
| AbstractResourceLoader | |
![]() | httpStatus : int
Returns the http status of a loaded resource.
| AbstractResourceLoader | |
![]() | itemType : String
The type of the loader item.
| AbstractLoaderItem | |
![]() | key : String
Returns the identifying key of the loader item.
| AbstractLoaderItem | |
![]() | loadingError : LoadingError
Returns the loading error in a ResourceLoaderEvent.FAILURE event.
| AbstractResourceLoader | |
![]() | maxLoadingTrials : uint
Returns the max number of trails in case of failures.
| AbstractResourceLoader | |
![]() | numItems : uint
Returns the number of items to be loaded within the loader item.
| AbstractProgressInfo | |
![]() | numItemsFailed : uint
Returns the number of items failed within the loader item.
| AbstractProgressInfo | |
![]() | numItemsLoaded : uint
Returns the number of items loaded within the loader item.
| AbstractProgressInfo | |
![]() | progress : Number
Returns the progress of the loader item as a decimal value between zero and 1.
| AbstractProgressInfo | |
![]() | scheduled : Boolean
Returns true, if the item already has been added to the loader manager
directly or to a sequence or a sequence manager.
| AbstractLoaderItem | |
![]() | status : String
The current loading status.
| AbstractLoaderItem | |
![]() | timeout : uint
Specifies a timeout after that the resource loader will fail.
| AbstractResourceLoader | |
![]() | url : String
Returns the URL of the resource loader.
| AbstractResourceLoader |
Method | Defined by | ||
---|---|---|---|
ImageAssetLoader(request:URLRequest)
Creates a new LoaderDelegate instance.
| ImageAssetLoader | ||
![]() |
getProperty(name:String):*
Lets you pull a prior specified runtime property.
| AbstractResourceLoader | |
![]() |
load():void
Starts loading of the resource.
| AbstractResourceLoader | |
![]() |
pause():void
Marks the item to be ignored by subsequent loader manager queue pulling operations.
| AbstractResourceLoader | |
![]() |
resume():void
Marks a prior paused item to be eligible for loader manager queue polling
operations.
| AbstractResourceLoader | |
![]() |
setProperty(name:String, value:*):void
Lets you specify an arbitrary runtime property to be available within
each resource loader event.
| AbstractResourceLoader | |
![]() |
stop():void
Immediately stops loading of the item or its containing items.
| AbstractResourceLoader | |
toString():String
Info
| ImageAssetLoader |
Method | Defined by | ||
---|---|---|---|
![]() |
clear():Boolean
Tries to reset the internal Flash URLLoader.
| URLLoaderDelegate | |
![]() |
dispatchComplete():void
Dispatches the ResourceLoaderEvent.COMPLETE event.
| AbstractResourceLoader | |
![]() |
dispatchFailure():void
Dispatches the ResourceLoaderEvent.FAILURE event.
| AbstractResourceLoader | |
![]() |
dispatchInit():void
Dispatches the ResourceLoaderEvent.INIT event.
| AbstractResourceLoader | |
![]() |
dispatchLoading():void
Dispatches the ResourceLoaderEvent.LOADING event.
| AbstractResourceLoader | |
![]() |
dispatchLoadingTrialFailure():void
Dispatches the ResourceLoaderEvent.TRIAL_FAILURE event.
| AbstractResourceLoader | |
![]() |
dispatchPause():void
Dispatches the ResourceLoaderEvent.PAUSE event.
| AbstractResourceLoader | |
![]() |
dispatchProgress():void
Dispatches the ResourceLoaderEvent.PROGRESS event.
| AbstractResourceLoader | |
![]() |
dispatchResume():void
Dispatches the ResourceLoaderEvent.RESUME event.
| AbstractResourceLoader | |
![]() |
dispatchStop():void
Dispatches the ResourceLoaderEvent.STOP event.
| AbstractResourceLoader | |
notifyComplete(content:*):void
A subclass must call notifyComplete in all cases the loading of the
resource has been finished successfully.
| ImageAssetLoader | ||
![]() |
notifyFailure(errorType:String, failureMessage:String, error:Error = null):void
A subclass must call notifyFailure in all cases the loading of the
resource cannot be accomplished.
| AbstractResourceLoader | |
![]() |
notifyHttpStatus(status:int):void
A subclass may call notifyHttpStatus to store a http status code.
| AbstractResourceLoader | |
![]() |
notifyInit(content:*):void
A subclass may call notifyInit if the content is ready for display
or any other use.
| AbstractResourceLoader | |
![]() |
notifyProgress(bytesTotal:uint = 0, bytesLoaded:uint = 0):void
A subclass may call notifyProgress to inform the clients about
a change in progess.
| AbstractResourceLoader | |
![]() |
startLoading():void
Tries to start the internal Flash URLLoader.
| URLLoaderDelegate |
container | property |
container:Sprite
[read-write]Returns the previously defined container.
Implementation public function get container():Sprite
public function set container(value:Sprite):void
ImageAssetLoader | () | constructor |
public function ImageAssetLoader(request:URLRequest)
Creates a new LoaderDelegate instance.
Parametersrequest:URLRequest — The request.
|
notifyComplete | () | method |
protected override function notifyComplete(content:*):void
A subclass must call notifyComplete in all cases the loading of the resource has been finished successfully.
Executes the callback before the final COMPLETE event is dispatched.
Parameterscontent:* — The loaded content.
|
toString | () | method |
public override function toString():String
Info
ReturnsString |