Packagecom.yogurt3d.io.managers.loadmanagers
Classpublic class LoadManager
InheritanceLoadManager Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
LoadManager
  
add(_filePath:String, _loaderType:Class, _parserType:Class = null, _props:Object = null):void
Adds a file to the load list.
LoadManager
  
LoadManager
  
close():void
LoadManager
  
fileIsLoaded(_filePath:String):Boolean
LoadManager
  
getLoadedContent(_filePath:String):*
LoadManager
  
LoadManager
  
start():void
LoadManager
Protected Methods
 MethodDefined By
  
handleFileIOError(event:IOErrorEvent):void
LoadManager
  
handleFileLoadComplete(event:Event):void
LoadManager
  
handleFileLoadProgress(event:ProgressEvent):void
LoadManager
Events
 Event Summary Defined By
  LoadManager
  LoadManager
  LoadManager
Property Detail
currentFileRatioproperty
currentFileRatio:Number  [read-only]


Implementation
    public function get currentFileRatio():Number
loadRatioproperty 
loadRatio:Number  [read-only]


Implementation
    public function get loadRatio():Number
loadsCompletedproperty 
loadsCompleted:int  [read-only]


Implementation
    public function get loadsCompleted():int
loadsTotalproperty 
loadsTotal:int  [read-only]


Implementation
    public function get loadsTotal():int
m_currentCacheproperty 
YOGURT3D_INTERNAL var m_currentCache:LoadCache

m_currentLoaderproperty 
YOGURT3D_INTERNAL var m_currentLoader:ILoader

m_filesproperty 
YOGURT3D_INTERNAL var m_files:Vector.<String>

m_loadedFileCountproperty 
YOGURT3D_INTERNAL var m_loadedFileCount:int

m_loaderInstanceByTypeproperty 
YOGURT3D_INTERNAL var m_loaderInstanceByType:Dictionary

m_loaderTypesproperty 
YOGURT3D_INTERNAL var m_loaderTypes:Vector.<Class>

m_localLoadCacheproperty 
YOGURT3D_INTERNAL var m_localLoadCache:LoadCache

m_parserInstanceByTypeproperty 
YOGURT3D_INTERNAL var m_parserInstanceByType:Dictionary

m_parserTypeByFilePathproperty 
YOGURT3D_INTERNAL var m_parserTypeByFilePath:Dictionary

m_propsByFilePathproperty 
YOGURT3D_INTERNAL var m_propsByFilePath:Dictionary

m_useGlobalCacheproperty 
YOGURT3D_INTERNAL var m_useGlobalCache:Boolean

useGlobalCacheproperty 
useGlobalCache:Boolean

If false this LoadManager will use an internal cache, otherwise use a global shared cache

The default value is false.


Implementation
    public function get useGlobalCache():Boolean
    public function set useGlobalCache(value:Boolean):void
Constructor Detail
LoadManager()Constructor
public function LoadManager()



Method Detail
add()method
public function add(_filePath:String, _loaderType:Class, _parserType:Class = null, _props:Object = null):void

Adds 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):Boolean

Parameters

_filePath:String

Returns
Boolean
getLoadedContent()method 
public function getLoadedContent(_filePath:String):*

Parameters

_filePath:String

Returns
*
handleFileIOError()method 
protected function handleFileIOError(event:IOErrorEvent):void

Parameters

event:IOErrorEvent

handleFileLoadComplete()method 
protected function handleFileLoadComplete(event:Event):void

Parameters

event:Event

handleFileLoadProgress()method 
protected function handleFileLoadProgress(event:ProgressEvent):void

Parameters

event:ProgressEvent

mergeInternalCacheWithGlobal()method 
public function mergeInternalCacheWithGlobal():void

start()method 
public function start():void

Event Detail
allFilesComplete Event
Event Object Type: com.yogurt3d.io.managers.loadmanagers.LoaderEvent

fileComplete Event  
Event Object Type: com.yogurt3d.io.managers.loadmanagers.LoaderEvent

loadProgress Event  
Event Object Type: com.yogurt3d.io.managers.loadmanagers.LoaderEvent