Packagecom.sibirjak.angara.core
Classpublic class LoaderItemEvent
InheritanceLoaderItemEvent Inheritance flash.events.Event
SubclassesResourceLoaderEvent, SequenceEvent, SequenceManagerEvent

Loader item event definition.



Public Properties
 PropertyDefined 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
Protected Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
LoaderItemEvent(type:String, loaderItem:ILoaderItem, affectedLoaderItem:ILoaderItem = null, priority:uint = 0)
Creates a new LoaderItemEvent.
LoaderItemEvent
Public Constants
 ConstantDefined 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
Property detail
_affectedLoaderItemproperty
protected var _affectedLoaderItem:ILoaderItem

Reference to a child oader item, which has been added or removed.

affectedLoaderItemproperty 
affectedLoaderItem:ILoaderItem  [read-only]

Returns the affected child loader item, which has been added or removed.

Implementation
    public function get affectedLoaderItem():ILoaderItem
_loaderItemproperty 
protected var _loaderItem:ILoaderItem

Reference to the event dispatching loader item.

loaderItemproperty 
loaderItem:ILoaderItem  [read-only]

Returns the event dispatching loader item.

Implementation
    public function get loaderItem():ILoaderItem
_priorityproperty 
protected var _priority:uint

Loader item priority.

Item priority when added to the LoaderManager.

priorityproperty 
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
Constructor detail
LoaderItemEvent()constructor
public function LoaderItemEvent(type:String, loaderItem:ILoaderItem, affectedLoaderItem:ILoaderItem = null, priority:uint = 0)

Creates a new LoaderItemEvent.

Parameters
type: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)
Constant detail
ADDconstant
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.

CLEARconstant 
public static const CLEAR:String = "item_clear"

Item container has been cleared.

Dispatched by LoaderManager, Sequence and SequenceManager.

COMPLETEconstant 
public static const COMPLETE:String = "item_complete"

Item is complete.

Dispatched by all loader items.

FAILUREconstant 
public static const FAILURE:String = "item_failure"

Loading resource has been failed.

Dispatched only by resource loaders.

PAUSEconstant 
public static const PAUSE:String = "item_pause"

Item has been paused.

Dispatched by all loader items.

PROGRESSconstant 
public static const PROGRESS:String = "item_progress"

Progress of an item has changed.

Dispatched by all loader items.

REMOVEconstant 
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.

RESUMEconstant 
public static const RESUME:String = "item_resume"

Item has been resumed.

Dispatched by all loader items.

STOPconstant 
public static const STOP:String = "item_stop"

Item has been stopped.

Dispatched by all loader items.