Packagecom.sibirjak.angara.resource
Classpublic class Callback
InheritanceCallback Inheritance flash.events.EventDispatcher
ImplementsICallback



Public Properties
 PropertyDefined by
  loader : IResourceLoader
[read-only] Returns a reference to the loader that defines the callback.
Callback
Public Methods
 MethodDefined by
  
Callback(loader:IResourceLoader, callbackFunction:Function)
Creates a new callback.
Callback
  
Notifies the loader manager about a completed asynchronous callback.
Callback
  
setAsync():void
Sets a callback to be asynchronous.
Callback
Property detail
isAsyncproperty
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
loaderproperty 
loader:IResourceLoader  [read-only]

Returns a reference to the loader that defines the callback.

Implementation
    public function get loader():IResourceLoader
Constructor detail
Callback()constructor
public function Callback(loader:IResourceLoader, callbackFunction:Function)

Creates a new callback.

Parameters
loader:IResourceLoader — The loader defining this callback.
 
callbackFunction:Function — The callback function to be invoked before the loader dispatch its COMPLETE event.
Method detail
call()method
sibirjak_loader function call():void

Framework internal trigger of the callback.

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.