| Package | com.sibirjak.angara.resource |
| Class | public class Callback |
| Inheritance | Callback flash.events.EventDispatcher |
| Implements | ICallback |
| Property | Defined by | ||
|---|---|---|---|
| loader : IResourceLoader
[read-only]
Returns a reference to the loader that defines the callback.
| Callback | ||
| Method | Defined by | ||
|---|---|---|---|
|
Callback(loader:IResourceLoader, callbackFunction:Function)
Creates a new callback.
| Callback | ||
|
notifyComplete():void
Notifies the loader manager about a completed asynchronous callback.
| Callback | ||
|
setAsync():void
Sets a callback to be asynchronous.
| Callback | ||
| isAsync | property |
isAsync:Boolean [read-only]Framework internal method to determine, if a callback is asynchronous and needs to be confirmed by a client.
Implementation sibirjak_loader function get isAsync():Boolean
| loader | property |
loader:IResourceLoader [read-only]Returns a reference to the loader that defines the callback.
Implementation public function get loader():IResourceLoader
| Callback | () | constructor |
public function Callback(loader:IResourceLoader, callbackFunction:Function)Creates a new callback.
Parametersloader:IResourceLoader — The loader defining this callback.
|
|
callbackFunction:Function — The callback function to be invoked before the loader dispatch its COMPLETE event.
|
| call | () | method |
sibirjak_loader function call():voidFramework internal trigger of the callback.
| notifyComplete | () | method |
public function notifyComplete():voidNotifies the loader manager about a completed asynchronous callback.
The loader manager will continue loading not until this method has been called.
| setAsync | () | method |
public function setAsync():voidSets a callback to be asynchronous.
The loader manager will wait for the callback completion to continue its work. You need to call callback.notifyComplete() to notify the loader manager to continue.