Packagech.capi.net
Interfacepublic interface ILoadManager extends flash.events.IEventDispatcher
SubinterfacesILoadableFile, IMassLoader

Represents a load manager. This manager should be able to manage all the events related to the loading of a file.

See also

CompositeMassLoader


Public Properties
 PropertyDefined by
  bytesLoaded : uint
[read-only] Defines the bytes that have been loaded.
ILoadManager
  bytesTotal : uint
[read-only] Defines the total bytes to load.
ILoadManager
  closeEvent : Event
[read-only] Defines the event that happend to close the file (Event.CLOSE, Event.COMPLETE, ...).
ILoadManager
  stateIdle : Boolean
[read-only] Defines if the ILoadManager is idle.
ILoadManager
  stateLoading : Boolean
[read-only] Defines if the ILoadManager is loading.
ILoadManager
  useCache : Boolean
Defines if the ILoadManager can use the cache or not.
ILoadManager
Public Methods
 MethodDefined by
  
start():void
Starts downloading data from the specified URL.
ILoadManager
  
stop():void
Stops the load operation in progress.
ILoadManager
Events
 EventSummaryDefined by
   Dispatched when the download operation stops.ILoadManager
   Dispatched after all the received data is received.ILoadManager
   Dispatched when the download operation commences following a call to the ILoadManager.load() method.ILoadManager
   Dispatched when data is received as the download operation progresses.ILoadManager
Property detail
bytesLoadedproperty
bytesLoaded:uint  [read-only]

Defines the bytes that have been loaded.

Implementation
    public function get bytesLoaded():uint
bytesTotalproperty 
bytesTotal:uint  [read-only]

Defines the total bytes to load.

Implementation
    public function get bytesTotal():uint
closeEventproperty 
closeEvent:Event  [read-only]

Defines the event that happend to close the file (Event.CLOSE, Event.COMPLETE, ...).

Implementation
    public function get closeEvent():Event
stateIdleproperty 
stateIdle:Boolean  [read-only]

Defines if the ILoadManager is idle.

Implementation
    public function get stateIdle():Boolean
stateLoadingproperty 
stateLoading:Boolean  [read-only]

Defines if the ILoadManager is loading.

Implementation
    public function get stateLoading():Boolean
useCacheproperty 
useCache:Boolean  [read-write]

Defines if the ILoadManager can use the cache or not.

Implementation
    public function get useCache():Boolean
    public function set useCache(value:Boolean):void
Method detail
start()method
public function start():void

Starts downloading data from the specified URL.


Throws
— If the ILoadManager is already loading.
stop()method 
public function stop():void

Stops the load operation in progress. Any load operation in progress is immediately terminated.


Throws
— If the ILoadManager is not loading.
Event detail
closeevent 
Event object type: flash.events.Event

Dispatched when the download operation stops. This is following a call to the ILoadManager.stop() method.

completeevent  
Event object type: flash.events.Event

Dispatched after all the received data is received.

openevent  
Event object type: flash.events.Event

Dispatched when the download operation commences following a call to the ILoadManager.load() method.

progressevent  
Event object type: flash.events.ProgressEvent

Dispatched when data is received as the download operation progresses.