| Package | com.sibirjak.angara.sequence |
| Interface | public interface ISequence extends ILoaderItem, IProgressInfo, flash.events.IEventDispatcher, org.as3commons.collections.framework.IIterable |
| Subinterfaces | IPagedSequence |
| Implementors | Sequence, SequenceManager |
A sequence can be prioritised, added, removed, stopped, paused or resumed like ordinary loaders. A sequence is the best approach to load lists of display assets such as lists of thumbnails.
A sequence does not support the status LoaderItemStatus.FAILURE. A sequence instead will be marked as LoaderItemStatus.COMPLETE when all contained items are either COMPLETE or FAILURE. if (numItemsLoaded + numItemsFailed == numItems) => status = LoaderItemStatus.COMPLETE.
| Method | Defined by | ||
|---|---|---|---|
|
add(resourceLoader:IResourceLoader, weight:uint = 0):void
Adds a new resource loader to the sequence.
| ISequence | ||
|
clear():void
Stops all loaders and removes all loader references from the sequence.
| ISequence | ||
![]() |
pause():void
Marks the item to be ignored by subsequent loader manager queue pulling operations.
| ILoaderItem | |
|
remove(resourceLoader:IResourceLoader):void
Removes a loader from a sequence.
| ISequence | ||
![]() |
resume():void
Marks a prior paused item to be eligible for loader manager queue polling
operations.
| ILoaderItem | |
![]() |
stop():void
Immediately stops loading of the item or its containing items.
| ILoaderItem | |
| add | () | method |
public function add(resourceLoader:IResourceLoader, weight:uint = 0):voidAdds a new resource loader to the sequence.
Its possible to add resource at any time of loading to a sequence but not after the sequence has been marked as complete.
ParametersresourceLoader:IResourceLoader — The resource loader to add.
|
|
weight:uint (default = 0) |
| clear | () | method |
public function clear():voidStops all loaders and removes all loader references from the sequence.
| remove | () | method |
public function remove(resourceLoader:IResourceLoader):voidRemoves a loader from a sequence.
This will decrease the number of items by 1 and adjust the sequence's progress value.
ParametersresourceLoader:IResourceLoader — The resource loader to remove.
|