| Package | com.sibirjak.angara.resource.loaders |
| Class | public class LoaderDelegate |
| Inheritance | LoaderDelegate AbstractResourceLoader AbstractLoaderItem AbstractProgressInfo flash.events.EventDispatcher |
| Implements | ILoaderDelegate |
| 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.
| LoaderDelegate | ||
![]() | content : *
Returns a reference to the loaded content.
| AbstractResourceLoader | |
![]() | 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 | |
| loaderContext : LoaderContext [write-only]
Speficies a LoaderContext property with security and application domain
information.
| LoaderDelegate | ||
![]() | 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 | ||
|---|---|---|---|
|
LoaderDelegate(request:URLRequest)
Creates a new LoaderDelegate instance.
| LoaderDelegate | ||
![]() |
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
| LoaderDelegate | ||
| Method | Defined by | ||
|---|---|---|---|
|
clear():Boolean
Tries to reset the internal Flash Loader.
| LoaderDelegate | ||
![]() |
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.
| AbstractResourceLoader | |
![]() |
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 Loader.
| LoaderDelegate | ||
| container | property |
container:Sprite [read-write]Returns the previously defined container.
Implementation public function get container():Sprite
public function set container(value:Sprite):void
| loaderContext | property |
loaderContext:LoaderContext [write-only]Speficies a LoaderContext property with security and application domain information.
You need to set up this property before the loader starts loading.
Implementation public function set loaderContext(value:LoaderContext):void
| LoaderDelegate | () | constructor |
public function LoaderDelegate(request:URLRequest)Creates a new LoaderDelegate instance.
Parametersrequest:URLRequest — The request.
|
| clear | () | method |
protected override function clear():BooleanTries to reset the internal Flash Loader.
If no connection is currently open, this method returns false.
ReturnsBoolean — true, if an open connection has been closed.
|
| startLoading | () | method |
protected override function startLoading():voidTries to start the internal Flash Loader.
If the loader cannot be started due to security reasons, this method will fail by invoking the notifyFailure method of the super class.
| toString | () | method |
public override function toString():StringInfo
ReturnsString |