Packagecom.sibirjak.angara.resource
Interfacepublic interface ICallback
ImplementorsCallback

The callback interface provides methods to control a resource loader callback behaviour.

It is possible to assign a callback function to any resource loader. If a callback has been specified, the callback will be executed before the resource loader COMPLETE event is dispatched. It is possible to mark a callback as asynchronous, which will stop the loader manager queue until the notifyComplete() method of that callback has been triggered.

Per default a callback method will be called synchronously. The loader manager continues working right after the callback handler has been triggered.



Public Properties
 PropertyDefined by
  loader : IResourceLoader
[read-only] Returns a reference to the loader that defines the callback.
ICallback
Public Methods
 MethodDefined by
  
Notifies the loader manager about a completed asynchronous callback.
ICallback
  
setAsync():void
Sets a callback to be asynchronous.
ICallback
Property detail
loaderproperty
loader:IResourceLoader  [read-only]

Returns a reference to the loader that defines the callback.

Implementation
    public function get loader():IResourceLoader
Method detail
notifyComplete()method
public function notifyComplete():void

Notifies 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():void

Sets 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.