| 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 | 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 | ||
|---|---|---|---|---|
| LoaderQueue | ||||
| LoaderQueue | ||||
| data | property |
public var data:Dictionary
| 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 |
| queueLoaderError | event |