Packageefnx.net
Classpublic class MultiLoader
InheritanceMultiLoader Inheritance flash.events.EventDispatcher

MultiLoader is a loader that loads multiple jpgs, pngs, gifs or swfs and holds them as BitmapData, Sprites or MovieClips based on fileType. Returns a BitmapData or Sprite.



Public Properties
 PropertyDefined by
  isLoaded : Boolean
[read-only] Returns whether or not all resources are loaded.
MultiLoader
  length : int
[read-only] Returns the number of resources loaded.
MultiLoader
  testing : Boolean = false
[static]
MultiLoader
  usingContext : Boolean = false
[static]
MultiLoader
Public Methods
 MethodDefined by
  
MultiLoader
  
get(entryName:String):*
Returns the given resource specified by entryName in the format designated by returnType in load().
MultiLoader
  
hasEntry(entryName:String):Boolean
Tells whether a certain resource exists.
MultiLoader
  
hasLoaded(entryName:String = ""):Boolean
Returns whether or not a given resource has loaded.
MultiLoader
  
listEntries():void
Lists all resources.
MultiLoader
  
load(path:String, entryName:String = "", returnType:String = ""):void
Begins the load process of a new resource.
MultiLoader
  
toString():String
MultiLoader
  
unload(entryName:String):void
Unloads a given resource specified by entryName.
MultiLoader
  
unloadAll():void
Unloads all resources.
MultiLoader
Property detail
isLoadedproperty
isLoaded:Boolean  [read-only]

Returns whether or not all resources are loaded.

Implementation
    public function get isLoaded():Boolean
lengthproperty 
length:int  [read-only]

Returns the number of resources loaded.

Implementation
    public function get length():int
testingproperty 
public static var testing:Boolean = false
usingContextproperty 
public static var usingContext:Boolean = false
Constructor detail
MultiLoader()constructor
public function MultiLoader()

Method detail
get()method
public function get(entryName:String):*

Returns the given resource specified by entryName in the format designated by returnType in load().

Parameters
entryName:String — The name of the resource to retrieve.

Returns
*

See also

hasEntry()method 
public function hasEntry(entryName:String):Boolean

Tells whether a certain resource exists.

Parameters
entryName:String — The name of the resource to check.

Returns
Boolean
hasLoaded()method 
public function hasLoaded(entryName:String = ""):Boolean

Returns whether or not a given resource has loaded.

Parameters
entryName:String (default = "") — The name of the resource to check load status of.

Returns
Boolean
listEntries()method 
public function listEntries():void

Lists all resources.

load()method 
public function load(path:String, entryName:String = "", returnType:String = ""):void

Begins the load process of a new resource.

Parameters
path:String — The path to the resource.
 
entryName:String (default = "") — The name of the resource [used in retrieval].
 
returnType:String (default = "") — The expected return type. Valid types are "MovieClip", "Sprite", "Bitmap" or "BitmapData"
toString()method 
public override function toString():String

Returns
String
unload()method 
public function unload(entryName:String):void

Unloads a given resource specified by entryName.

Parameters
entryName:String — The name of the resource to unload.
unloadAll()method 
public function unloadAll():void

Unloads all resources.