| Package | com.yogurt3d.io.managers.loadmanagers |
| Class | public class LoadManager |
| Inheritance | LoadManager flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
| currentFileRatio : Number [read-only] | LoadManager | ||
| loadRatio : Number [read-only] | LoadManager | ||
| loadsCompleted : int [read-only] | LoadManager | ||
| loadsTotal : int [read-only] | LoadManager | ||
| useGlobalCache : Boolean
If false this LoadManager will use an internal cache, otherwise use a global shared cache
| LoadManager | ||
| Method | Defined By | ||
|---|---|---|---|
| LoadManager | |||
add(_filePath:String, _loaderType:Class, _parserType:Class = null, _props:Object = null):void
Adds a file to the load list. | LoadManager | ||
clearInternalCache():void | LoadManager | ||
close():void | LoadManager | ||
fileIsLoaded(_filePath:String):Boolean | LoadManager | ||
getLoadedContent(_filePath:String):* | LoadManager | ||
mergeInternalCacheWithGlobal():void | LoadManager | ||
start():void | LoadManager | ||
| Method | Defined By | ||
|---|---|---|---|
handleFileIOError(event:IOErrorEvent):void | LoadManager | ||
handleFileLoadComplete(event:Event):void | LoadManager | ||
handleFileLoadProgress(event:ProgressEvent):void | LoadManager | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| LoadManager | ||||
| LoadManager | ||||
| LoadManager | ||||
| currentFileRatio | property |
currentFileRatio:Number [read-only] public function get currentFileRatio():Number| loadRatio | property |
loadRatio:Number [read-only] public function get loadRatio():Number| loadsCompleted | property |
loadsCompleted:int [read-only] public function get loadsCompleted():int| loadsTotal | property |
loadsTotal:int [read-only] public function get loadsTotal():int| m_currentCache | property |
YOGURT3D_INTERNAL var m_currentCache:LoadCache| m_currentLoader | property |
YOGURT3D_INTERNAL var m_currentLoader:ILoader| m_files | property |
YOGURT3D_INTERNAL var m_files:Vector.<String>| m_loadedFileCount | property |
YOGURT3D_INTERNAL var m_loadedFileCount:int| m_loaderInstanceByType | property |
YOGURT3D_INTERNAL var m_loaderInstanceByType:Dictionary| m_loaderTypes | property |
YOGURT3D_INTERNAL var m_loaderTypes:Vector.<Class>| m_localLoadCache | property |
YOGURT3D_INTERNAL var m_localLoadCache:LoadCache| m_parserInstanceByType | property |
YOGURT3D_INTERNAL var m_parserInstanceByType:Dictionary| m_parserTypeByFilePath | property |
YOGURT3D_INTERNAL var m_parserTypeByFilePath:Dictionary| m_propsByFilePath | property |
YOGURT3D_INTERNAL var m_propsByFilePath:Dictionary| m_useGlobalCache | property |
YOGURT3D_INTERNAL var m_useGlobalCache:Boolean| useGlobalCache | property |
useGlobalCache:BooleanIf false this LoadManager will use an internal cache, otherwise use a global shared cache
The default value is false.
public function get useGlobalCache():Boolean public function set useGlobalCache(value:Boolean):void| LoadManager | () | Constructor |
public function LoadManager()| add | () | method |
public function add(_filePath:String, _loaderType:Class, _parserType:Class = null, _props:Object = null):voidAdds a file to the load list.
Parameters
_filePath:String — Address of the file
| |
_loaderType:Class — LoaderClass (eg: DisplayObjectLoader, DataLoader)
| |
_parserType:Class (default = null) — Parser to parse the input data (eg: Y3D_Parser, YOA_Parser)
| |
_props:Object (default = null) |
See also
| clearInternalCache | () | method |
public function clearInternalCache():void| close | () | method |
public function close():void| fileIsLoaded | () | method |
public function fileIsLoaded(_filePath:String):BooleanParameters
_filePath:String |
Boolean |
| getLoadedContent | () | method |
public function getLoadedContent(_filePath:String):*Parameters
_filePath:String |
* |
| handleFileIOError | () | method |
protected function handleFileIOError(event:IOErrorEvent):voidParameters
event:IOErrorEvent |
| handleFileLoadComplete | () | method |
protected function handleFileLoadComplete(event:Event):voidParameters
event:Event |
| handleFileLoadProgress | () | method |
protected function handleFileLoadProgress(event:ProgressEvent):voidParameters
event:ProgressEvent |
| mergeInternalCacheWithGlobal | () | method |
public function mergeInternalCacheWithGlobal():void| start | () | method |
public function start():void| allFilesComplete | Event |
| fileComplete | Event |
| loadProgress | Event |