Package | com.sibirjak.angara.resource.loaders |
Class | public class URLLoaderDelegate |
Inheritance | URLLoaderDelegate ![]() ![]() ![]() ![]() |
Implements | IURLLoaderDelegate |
Subclasses | ImageAssetLoader |
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 | |
![]() | 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 |
Property | Defined by | ||
---|---|---|---|
_dataFormat : String
The data format of the Flash URLLoader content.
| URLLoaderDelegate | ||
![]() | _failedLoadingTrials : uint = 0
Number of failed loading trials.
| AbstractResourceLoader | |
![]() | _isScheduled : Boolean = false
The schedule marker.
| AbstractLoaderItem | |
![]() | _key : String
The key used for debugging purposes.
| AbstractLoaderItem | |
![]() | _loadingError : LoadingError
Loading error information.
| AbstractResourceLoader | |
![]() | _loadingTrials : uint = 0
Number of loading trials already done.
| AbstractResourceLoader | |
![]() | _numItems : uint = 0
The number of items added.
| AbstractProgressInfo | |
![]() | _numItemsFailed : uint = 0
The number of items failed loading.
| AbstractProgressInfo | |
![]() | _numItemsLoaded : uint = 0
The number of items alredy loaded.
| AbstractProgressInfo | |
![]() | _progress : Number = 0
The overall progress of the item.
| AbstractProgressInfo | |
![]() | _request : URLRequest
The request.
| AbstractResourceLoader | |
![]() | _status : String
The loader item status.
| AbstractLoaderItem | |
![]() | _type : String
The loader item type.
| AbstractLoaderItem | |
_urlLoader : URLLoader
The Flash URLLoader.
| URLLoaderDelegate |
Method | Defined by | ||
---|---|---|---|
URLLoaderDelegate(request:URLRequest)
Creates a new URLLoaderDelegate instance.
| URLLoaderDelegate | ||
![]() |
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
| URLLoaderDelegate |
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.
| 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 URLLoader.
| URLLoaderDelegate |
_dataFormat | property |
protected var _dataFormat:String
The data format of the Flash URLLoader content.
dataFormat | property |
dataFormat:String
[read-write]Implementation
public function get dataFormat():String
public function set dataFormat(value:String):void
_urlLoader | property |
protected var _urlLoader:URLLoader
The Flash URLLoader.
URLLoaderDelegate | () | constructor |
public function URLLoaderDelegate(request:URLRequest)
Creates a new URLLoaderDelegate instance.
Parametersrequest:URLRequest — The request.
|
clear | () | method |
protected override function clear():Boolean
Tries to reset the internal Flash URLLoader.
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():void
Tries to start the internal Flash URLLoader.
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():String
Info
ReturnsString |