| Package | ch.capi.net.app |
| Class | public class ApplicationMassLoader |
| Inheritance | ApplicationMassLoader PriorityMassLoader MassLoader GlobalEventDispatcher flash.events.EventDispatcher |
| Implements | IMassLoader |
ApplicationFile.
See also
| Method | Defined By | ||
|---|---|---|---|
ApplicationMassLoader(parallelFiles:uint = 0, loadByPriority:Boolean = false)
Creates a new ApplicationMassLoader object. | ApplicationMassLoader | ||
addAll(context:IApplicationContext):Array
Add all the ApplicationFile objects that are in a specified ApplicationContext in
the loading queue. | ApplicationMassLoader | ||
addApplicationFile(file:ApplicationFile):void
Add the specified ApplicationFile and its dependencies. | ApplicationMassLoader | ||
![]() | addFile(file:ILoadManager):void
Add the specified file in the loading queue with the default priority. | PriorityMassLoader | |
addGlobalFiles(context:IApplicationContext):void
Add the global ApplicationFile in the loading queue. | ApplicationMassLoader | ||
![]() | addPrioritizedFile(file:ILoadManager, priority:int = 0):void
Add a file with a specific priority in the loading queue. | PriorityMassLoader | |
![]() | clear():void
Clear the loading queues and files priorities. | PriorityMassLoader | |
![]() | dispatchEvent(evt:Event):Boolean
Dispatches the specified Event through the listeners. | GlobalEventDispatcher | |
![]() | getFileCount():uint
Get the number of files to be loaded. | MassLoader | |
![]() | getFilePriority(file:ILoadManager):int
Retreives the priority of a ILoadManager object. | PriorityMassLoader | |
![]() | getFiles():Array
Get the files that will be loaded. | MassLoader | |
![]() | getFilesAtPriority(priority:int):Array
Defines the files to be loaded at the specified priority. | PriorityMassLoader | |
![]() | getStaticIndexOf(file:ILoadManager):int
Retrieves the static index of the specified ILoadManager. | MassLoader | |
![]() | hasFile(file:ILoadManager):Boolean
Retrieves if a file is contained in the loading queue. | MassLoader | |
load(file:Object, context:IApplicationContext = null, withGlobalFiles:Boolean = false):ApplicationFile
Starts the loading of the specified file. | ApplicationMassLoader | ||
![]() | removeFile(file:ILoadManager):void
Removes the specified file from the loading queue. | PriorityMassLoader | |
![]() | setFilePriority(file:ILoadManager, priority:int):void
Set a file priority of a ILoadManager object. | PriorityMassLoader | |
![]() | start():Boolean
Starts downloading data from the specified ILoadManager objects. | MassLoader | |
![]() | stop():void
Stops the load operation in progress. | MassLoader | |
![]() | toString():String
Lists all the files contained in this PriorityMassLoader in a String. | PriorityMassLoader | |
| Method | Defined By | ||
|---|---|---|---|
addLoadableFile(file:ILoadableFile, priority:int):void
Add the specified ILoadableFile to the queue within the priority. | ApplicationMassLoader | ||
![]() |
Creates a MassLoadEvent based on the specified ILoadManager. | PriorityMassLoader | |
![]() | getFileQueueIndex(file:ILoadManager):int
Retrieves the index of a file in the loading queue (if the loading of the specified file has been started). | MassLoader | |
![]() | isComplete():Boolean
Defines if the massive loading is complete. | MassLoader | |
![]() | loadFile(file:ILoadManager):Boolean
Start the loading of a file. | MassLoader | |
![]() |
Start the loading of the next file. | MassLoader | |
![]() | onClose(evt:Event):void
Event.CLOSE listener. | MassLoader | |
![]() | onComplete(evt:Event):void
Event.COMPLETE listener. | MassLoader | |
![]() | onIOError(evt:IOErrorEvent):void
IOErrorEvent.IO_ERROR listener. | MassLoader | |
![]() | onOpen(evt:Event):void
Event.OPEN listener. | MassLoader | |
![]() | onProgress(evt:ProgressEvent):void
ProgressEvent.PROGRESS listener. | MassLoader | |
![]() | onSecurityError(evt:SecurityErrorEvent):void
SecurityError.SECURITY_ERROR listener. | MassLoader | |
![]() |
Processes the loading policy on the currently closed file. | MassLoader | |
![]() |
Process the loading policy on the currently file that is being open. | MassLoader | |
![]() | registerTo(file:ILoadManager):void
Register the MassLoader to the specified ILoadManager
object's events. | MassLoader | |
![]() |
Determines which file must be loaded first. | PriorityMassLoader | |
![]() | startLoading():void
Start the loading of the files. | PriorityMassLoader | |
![]() | unregisterFrom(file:ILoadManager):void
Unregister the MassLoader from the specified ILoadManager
object's events. | MassLoader | |
![]() | updateBytes():void
Updates the bytesLoaded and bytesTotal values. | MassLoader | |
| ApplicationMassLoader | () | Constructor |
public function ApplicationMassLoader(parallelFiles:uint = 0, loadByPriority:Boolean = false)
Creates a new ApplicationMassLoader object.
parallelFiles:uint (default = 0) — Defines how many file to load at the same time. This value will affect the loading only if the
loadByPriority property is false.
| |
loadByPriority:Boolean (default = false) — Defines if the ApplicationMassLoader must load the files by priority.
|
| addAll | () | method |
public function addAll(context:IApplicationContext):Array
Add all the ApplicationFile objects that are in a specified ApplicationContext in
the loading queue.
Parameters
context:IApplicationContext — The IApplicationContext.
|
Array — An Array containing all the ApplicationFile added to the loading queue.
|
See also
| addApplicationFile | () | method |
public function addApplicationFile(file:ApplicationFile):void
Add the specified ApplicationFile and its dependencies.
Parameters
file:ApplicationFile — The ApplicationFile to add.
|
| addGlobalFiles | () | method |
public function addGlobalFiles(context:IApplicationContext):void
Add the global ApplicationFile in the loading queue.
Parameters
context:IApplicationContext — The IApplicationContext.
|
| addLoadableFile | () | method |
protected function addLoadableFile(file:ILoadableFile, priority:int):void
Add the specified ILoadableFile to the queue within the priority. If the ILoadableFile is
already in the loading queue, then it checks if the priority must be udpated or not.
Parameters
file:ILoadableFile — The ILoadableFile.
| |
priority:int — The priority.
|
| load | () | method |
public function load(file:Object, context:IApplicationContext = null, withGlobalFiles:Boolean = false):ApplicationFile
Starts the loading of the specified file. If the file isn't an ApplicationFile then the toString() method
will be used to retrieve it from the specified ApplicationContext.
Parameters
file:Object — The ApplicationFile object or the name of the ApplicationFile. If this param
is a String, then the IApplicationContext must be specified.
| |
context:IApplicationContext (default = null) — The IApplicationContext to retrieve the ApplicationFile and global files.
| |
withGlobalFiles:Boolean (default = false) — Tells the ApplicationMassLoader to automatically add the ApplicationFile
that are noted as global (IApplicationContext must be specified).
|
ApplicationFile — The ApplicationFile being loaded.
|
IllegalOperationError If — the ApplicationmassLoader is currently loading.
|