Package | com.sibirjak.angara.core |
Class | public class LoaderItemEvent |
Inheritance | LoaderItemEvent ![]() |
Subclasses | ResourceLoaderEvent, SequenceEvent, SequenceManagerEvent |
Property | Defined by | ||
---|---|---|---|
affectedLoaderItem : ILoaderItem
[read-only]
Returns the affected child loader item, which has been added or removed.
| LoaderItemEvent | ||
loaderItem : ILoaderItem
[read-only]
Returns the event dispatching loader item.
| LoaderItemEvent | ||
priority : uint [read-only]
Returns the priority the item is added with to the LoaderManager.
| LoaderItemEvent |
Property | Defined by | ||
---|---|---|---|
_affectedLoaderItem : ILoaderItem
Reference to a child oader item, which has been added or removed.
| LoaderItemEvent | ||
_loaderItem : ILoaderItem
Reference to the event dispatching loader item.
| LoaderItemEvent | ||
_priority : uint
Loader item priority.
| LoaderItemEvent |
Method | Defined by | ||
---|---|---|---|
LoaderItemEvent(type:String, loaderItem:ILoaderItem, affectedLoaderItem:ILoaderItem = null, priority:uint = 0)
Creates a new LoaderItemEvent.
| LoaderItemEvent |
Constant | Defined by | ||
---|---|---|---|
ADD : String = "item_added" [static]
An item has been added to the loader manager queue (Schedule)
or to a sequence.
| LoaderItemEvent | ||
CLEAR : String = "item_clear" [static]
Item container has been cleared.
| LoaderItemEvent | ||
COMPLETE : String = "item_complete" [static]
Item is complete.
| LoaderItemEvent | ||
FAILURE : String = "item_failure" [static]
Loading resource has been failed.
| LoaderItemEvent | ||
PAUSE : String = "item_pause" [static]
Item has been paused.
| LoaderItemEvent | ||
PROGRESS : String = "item_progress" [static]
Progress of an item has changed.
| LoaderItemEvent | ||
REMOVE : String = "item_removed" [static]
An item has been removed from the to the loader manager queue (Schedule)
or from the connection pool.
| LoaderItemEvent | ||
RESUME : String = "item_resume" [static]
Item has been resumed.
| LoaderItemEvent | ||
STOP : String = "item_stop" [static]
Item has been stopped.
| LoaderItemEvent |
_affectedLoaderItem | property |
protected var _affectedLoaderItem:ILoaderItem
Reference to a child oader item, which has been added or removed.
affectedLoaderItem | property |
affectedLoaderItem:ILoaderItem
[read-only]Returns the affected child loader item, which has been added or removed.
Implementation public function get affectedLoaderItem():ILoaderItem
_loaderItem | property |
protected var _loaderItem:ILoaderItem
Reference to the event dispatching loader item.
loaderItem | property |
loaderItem:ILoaderItem
[read-only]Returns the event dispatching loader item.
Implementation public function get loaderItem():ILoaderItem
_priority | property |
protected var _priority:uint
Loader item priority.
Item priority when added to the LoaderManager.
priority | property |
priority:uint
[read-only]Returns the priority the item is added with to the LoaderManager.
This property is only set in the ADD event of the LoaderManager.
Implementation public function get priority():uint
LoaderItemEvent | () | constructor |
public function LoaderItemEvent(type:String, loaderItem:ILoaderItem, affectedLoaderItem:ILoaderItem = null, priority:uint = 0)
Creates a new LoaderItemEvent.
Parameterstype:String — Type of the event.
|
|
loaderItem:ILoaderItem — Reference to the affected loader item.
|
|
affectedLoaderItem:ILoaderItem (default = null ) — The affected (added or removed) child loader item.
|
|
priority:uint (default = 0 )
|
ADD | constant |
public static const ADD:String = "item_added"
An item has been added to the loader manager queue (Schedule) or to a sequence.
The loader manager will start listening to events of the scheduled item (Schedule) or continue loading (Sequence and SequenceManager)
Dispatched by Schedule, Sequence and SequenceManager.
CLEAR | constant |
public static const CLEAR:String = "item_clear"
Item container has been cleared.
Dispatched by LoaderManager, Sequence and SequenceManager.
COMPLETE | constant |
public static const COMPLETE:String = "item_complete"
Item is complete.
Dispatched by all loader items.
FAILURE | constant |
public static const FAILURE:String = "item_failure"
Loading resource has been failed.
Dispatched only by resource loaders.
PAUSE | constant |
public static const PAUSE:String = "item_pause"
Item has been paused.
Dispatched by all loader items.
PROGRESS | constant |
public static const PROGRESS:String = "item_progress"
Progress of an item has changed.
Dispatched by all loader items.
REMOVE | constant |
public static const REMOVE:String = "item_removed"
An item has been removed from the to the loader manager queue (Schedule) or from the connection pool.
The loader manager will stop listening to events of the scheduled item after the Schedule dispatchs this event.
The loader manager will find the next items to load after the ConnectionPool dispatchs this event.
Dispatched by Schedule and ConnectionPool.
RESUME | constant |
public static const RESUME:String = "item_resume"
Item has been resumed.
Dispatched by all loader items.
STOP | constant |
public static const STOP:String = "item_stop"
Item has been stopped.
Dispatched by all loader items.