Package | ch.capi.core |
Class | public class ApplicationMassLoader |
Inheritance | ApplicationMassLoader PriorityMassLoader MassLoader flash.events.EventDispatcher |
Implements | IMassLoader |
ApplicationFile
.
See also
Method | Defined by | ||
---|---|---|---|
Creates a new
ApplicationMassLoader object. | ApplicationMassLoader | ||
addApplicationFile(file:ApplicationFile, priority:int = 0):void
Add the specified
ApplicationFile and its dependencies. | ApplicationMassLoader | ||
addFile(file:ILoadManager):void
Add the specified file into the loading queue with the specified
defaultPriority . | PriorityMassLoader | ||
addGlobalFiles(priority:int = 50, context:ApplicationContext = null):void
Add the global
ApplicationFile into the loading queue. | ApplicationMassLoader | ||
addPrioritizedFile(file:ILoadManager, priority:int = 0):void
Add a file with a specific priority into the loading queue.
| PriorityMassLoader | ||
clear():void
Empty the loading queue.
| MassLoader | ||
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 | ||
hasFile(file:ILoadManager):Boolean
Retrieves if a file is contained into the loading queue.
| MassLoader | ||
removeFile(file:ILoadManager):void
Removes the specified file from the loading queue.
| PriorityMassLoader | ||
start():void
Starts downloading data from the specified
ILoadableFile objects. | MassLoader | ||
stop():void
Stops the load operation in progress.
| MassLoader | ||
toString():String
Lists all the files contained into this
PriorityMassLoader into a String . | PriorityMassLoader |
Method | Defined by | ||
---|---|---|---|
addLoadableFile(file:ILoadableFile, priority:int):void
Add the specified
ILoadableFile to the queue within the priority. | ApplicationMassLoader | ||
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 | ||
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()
Creates a new ApplicationMassLoader
object.
addApplicationFile | () | method |
public function addApplicationFile(file:ApplicationFile, priority:int = 0):void
Add the specified ApplicationFile
and its dependencies.
file:ApplicationFile — The ApplicationFile to add.
|
|
priority:int (default = 0 ) — The priority of the ApplicationFile . All the dependencies will have a
higher priority (+1).
|
addGlobalFiles | () | method |
public function addGlobalFiles(priority:int = 50, context:ApplicationContext = null):void
Add the global ApplicationFile
into the loading queue.
priority:int (default = 50 ) — The priority of the global files. In order to have a logical behavior, this priority
should be greather than a simple ApplicationFile and its dependencies.
|
|
context:ApplicationContext (default = null ) — The ApplicationContext . If not specified, the global context will be used.
|
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 into the loading queue, then it checks if the priority must be udpated or not.
file:ILoadableFile — The ILoadableFile .
|
|
priority:int — The priority.
|