Package | com.sibirjak.angara |
Interface | public interface ILoaderManager extends flash.events.IEventDispatcher |
Implementors | LoaderManager |
Property | Defined by | ||
---|---|---|---|
numItemsLeft : uint [read-only]
Returns the number of resources left to load.
| ILoaderManager | ||
status : String [read-only]
The current loader manager status.
| ILoaderManager |
Method | Defined by | ||
---|---|---|---|
add(loaderItem:ILoaderItem, priority:uint = 0):void
Adds a new loader item to the queue.
| ILoaderManager | ||
clear():void
Stops all loaders and removes all loader item references from the queue.
| ILoaderManager | ||
pause():void
Pauses the LoaderManager.
| ILoaderManager | ||
remove(loaderItem:ILoaderItem):void
Removes a loader item from the queue.
| ILoaderManager | ||
resume():void
Resumes the prior paused LoaderManager.
| ILoaderManager | ||
stop():void
Stops all active net connections.
| ILoaderManager |
numItemsLeft | property |
numItemsLeft:uint
[read-only]Returns the number of resources left to load.
Adding 2 loader, finishing 1 loader will then return 1.
The value will be calculated at runtime with a worst complexity O(n) where n is the number of resource loaders added directly or to a container.
Implementation public function get numItemsLeft():uint
status | property |
status:String
[read-only]The current loader manager status.
The initial status is LoaderItemStatus.WAITING. Its possible to pause the loader manager, which will set the status to LoaderItemStatus.PAUSED.
Implementation public function get status():String
add | () | method |
public function add(loaderItem:ILoaderItem, priority:uint = 0):void
Adds a new loader item to the queue.
The type can be either LoaderItemType.LOADER, LoaderItemType.SEQUENCE or LoaderItemType.SEQUENCE_MANAGER.
It is possible to specify a priority at which time the item should be loaded. Lesser priority value means sooner loading.
ParametersloaderItem:ILoaderItem — The item to add.
|
|
priority:uint (default = 0 ) — The priority to load the item.
|
clear | () | method |
public function clear():void
Stops all loaders and removes all loader item references from the queue.
pause | () | method |
public function pause():void
Pauses the LoaderManager.
Active connections won't be closed. Use pause() + stop() to close all connections and stop the loader manager.
remove | () | method |
public function remove(loaderItem:ILoaderItem):void
Removes a loader item from the queue.
The type can be either LoaderItemType.LOADER, LoaderItemType.SEQUENCE or LoaderItemType.SEQUENCE_MANAGER.
ParametersloaderItem:ILoaderItem — The item to remove.
|
resume | () | method |
public function resume():void
Resumes the prior paused LoaderManager.
stop | () | method |
public function stop():void
Stops all active net connections.
In order to stop the loader manager loading and pause you need to call pause() + stop().