| Package | ch.capi.net |
| Interface | public interface IMassLoader extends ILoadManager, flash.events.IEventDispatcher |
| Implementors | ApplicationMassLoader, MassLoader, PriorityMassLoader |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | bytesLoaded : uint
Defines the bytes that have been loaded.
| ILoadManager | |
![]() | bytesTotal : uint
Defines the total bytes to load.
| ILoadManager | |
![]() | closeEvent : Event
Defines the event that happend to close the file (Event.CLOSE, Event.COMPLETE, ...).
| ILoadManager | |
| loadInfo : ILoadInfo
[read-only]
Defines the
ILoadInfo object linked to the IMassLoader. | IMassLoader | ||
| loadPolicy : ILoadPolicy
Defines the
ILoadPolicy to use. | IMassLoader | ||
| parallelFiles : uint
Defines the number of files that will be loaded simultaneously.
| IMassLoader | ||
![]() | stateIdle : Boolean
Defines if the
ILoadManager is idle. | ILoadManager | |
![]() | stateLoading : Boolean
Defines if the
ILoadManager is loading. | ILoadManager | |
![]() | useCache : Boolean
Defines if the
ILoadManager can use the cache or not. | ILoadManager | |
| Method | Defined by | ||
|---|---|---|---|
|
addFile(file:ILoadManager):void
Add a file to the loading queue.
| IMassLoader | ||
|
clear():void
Empty the loading queue.
| IMassLoader | ||
|
getFileCount():uint
Get the number of files to be loaded.
| IMassLoader | ||
|
getFiles():Array
Get the files that will be loaded.
| IMassLoader | ||
|
removeFile(file:ILoadManager):void
Removes a file from the loading queue.
| IMassLoader | ||
![]() |
start():void
Starts downloading data from the specified URL.
| ILoadManager | |
![]() |
stop():void
Stops the load operation in progress.
| ILoadManager | |
| Event | Summary | Defined by | ||
|---|---|---|---|---|
![]() | Dispatched when the download operation stops. | ILoadManager | ||
![]() | Dispatched after all the received data is received. | ILoadManager | ||
Dispatched when the loading of a ILoadManager is closed (eg when the loading is complete or
an error has occured). | IMassLoader | |||
Dispatched when the IMassLoader starts the loading of a file. | IMassLoader | |||
![]() |
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 | ||
| loadInfo | property |
loadInfo:ILoadInfo [read-only]
Defines the ILoadInfo object linked to the IMassLoader.
public function get loadInfo():ILoadInfo
| loadPolicy | property |
loadPolicy:ILoadPolicy [read-write]
Defines the ILoadPolicy to use.
public function get loadPolicy():ILoadPolicy
public function set loadPolicy(value:ILoadPolicy):void
| parallelFiles | property |
parallelFiles:uint [read-write]Defines the number of files that will be loaded simultaneously. If the value is changed during a load process, this won't affect it.
Implementation public function get parallelFiles():uint
public function set parallelFiles(value:uint):void
| addFile | () | method |
public function addFile(file:ILoadManager):voidAdd a file to the loading queue.
Parametersfile:ILoadManager — The file to add.
|
See also
| clear | () | method |
public function clear():voidEmpty the loading queue.
| getFileCount | () | method |
public function getFileCount():uintGet the number of files to be loaded.
Returnsuint — The number of file to load.
|
| getFiles | () | method |
public function getFiles():ArrayGet the files that will be loaded.
ReturnsArray — An Array containing the files to load.
|
| removeFile | () | method |
public function removeFile(file:ILoadManager):voidRemoves a file from the loading queue.
Parametersfile:ILoadManager — The file to remove.
|
| fileClose | event |
ch.capi.events.MassLoadEvent
Dispatched when the loading of a ILoadManager is closed (eg when the loading is complete or
an error has occured).
| fileOpen | event |
ch.capi.events.MassLoadEvent
Dispatched when the IMassLoader starts the loading of a file. This event
is dispatched just before the ILoadManager.start() method is called.