Package | com.sibirjak.angara.monitor |
Interface | public interface IMonitor extends IProgressInfo, flash.events.IEventDispatcher |
Implementors | Monitor |
A monitor returns the overall progress of its containing loader items.
It is possible to add loader items cross over their assignment to the loader manager, to a sequence or a sequence manager.
The monitor listens to progress and complete events of its loader items and updates its internal progress information simultaneously.
Method | Defined by | ||
---|---|---|---|
add(loaderItem:ILoaderItem, weight:uint = 0):void
Adds a loader item to a progress monitor.
| IMonitor | ||
clear():void
Removes all loader item references from the progress monitor.
| IMonitor | ||
remove(loaderItem:ILoaderItem):void
Removes a loader item from the progress monitor.
| IMonitor |
add | () | method |
public function add(loaderItem:ILoaderItem, weight:uint = 0):void
Adds a loader item to a progress monitor.
You can add any loader item type (resource loader, sequence, sequence manager).
If no weight parameter is given, the monitor uses the items.numItems property for the weight. Adding one resource loader and a sequence of 3 items would this way result in a cumulative weight of 4. Finishing the sequence would change the monitor's progress to .75 then.
ParametersloaderItem:ILoaderItem — The loader item to be monitored.
|
|
weight:uint (default = 0 ) — The weight of the item within all monitor item's
|
clear | () | method |
public function clear():void
Removes all loader item references from the progress monitor.
remove | () | method |
public function remove(loaderItem:ILoaderItem):void
Removes a loader item from the progress monitor.
ParametersloaderItem:ILoaderItem — The loader to be removed.
|