| Package | sandy.util |
| Class | public class LoaderQueue |
| Inheritance | LoaderQueue flash.events.EventDispatcher |
A LoaderQueue allows you to queue up requests for loading external resources.
| Property | Defined by | ||
|---|---|---|---|
| data : Dictionary
A list of all resources indexed by their names.
| LoaderQueue | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new loader queue.
| LoaderQueue | ||
|
add(p_sID:String, p_oURLRequest:URLRequest):void
Adds a new request to this loader queue.
| LoaderQueue | ||
|
start():void
Starts the loading of all resources in the queue.
| LoaderQueue | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when a resource has been loaded. | LoaderQueue | |||
| Dispatched when an error is encountered while loading a resource. | LoaderQueue | |||
| data | property |
public var data:DictionaryA list of all resources indexed by their names.
| LoaderQueue | () | constructor |
public function LoaderQueue()Creates a new loader queue.
| add | () | method |
public function add(p_sID:String, p_oURLRequest:URLRequest):voidAdds a new request to this loader queue.
The request is given its own loader and is added to a loader queue
The loding is postponed until the start method of the queue is called.
p_sID:String — A string identifier for this request
|
|
p_oURLRequest:URLRequest — The request
|
| start | () | method |
public function start():voidStarts the loading of all resources in the queue.
All loaders in the queue are started and IOErrorEvent and the COMPLETE event are subscribed to.
| queueComplete | event |
sandy.events.QueueEvent
sandy.events.QueueEvent.QUEUE_COMPLETE
Dispatched when a resource has been loaded.
Defines the value of the type property of a queueComplete event object.
| queueLoaderError | event |
sandy.events.QueueEvent
sandy.events.QueueEvent.QUEUE_LOADER_ERROR
Dispatched when an error is encountered while loading a resource.
Defines the value of the type property of a queueLoaderError event object.