| Package | efnx.net |
| Class | public class MultiLoader |
| Inheritance | MultiLoader flash.events.EventDispatcher |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| isLoaded | property |
isLoaded:Boolean [read-only]Returns whether or not all resources are loaded.
Implementation public function get isLoaded():Boolean
| length | property |
length:int [read-only]Returns the number of resources loaded.
Implementation public function get length():int
| testing | property |
public static var testing:Boolean = false
| usingContext | property |
public static var usingContext:Boolean = false
| MultiLoader | () | constructor |
public function MultiLoader()
| get | () | method |
public function get(entryName:String):*
Returns the given resource specified by entryName in the format designated
by returnType in load().
entryName:String — The name of the resource to retrieve.
|
* |
See also
| hasEntry | () | method |
public function hasEntry(entryName:String):BooleanTells whether a certain resource exists.
ParametersentryName:String — The name of the resource to check.
|
Boolean |
| hasLoaded | () | method |
public function hasLoaded(entryName:String = ""):BooleanReturns whether or not a given resource has loaded.
ParametersentryName:String (default = "") — The name of the resource to check load status of.
|
Boolean |
| listEntries | () | method |
public function listEntries():voidLists all resources.
| load | () | method |
public function load(path:String, entryName:String = "", returnType:String = ""):voidBegins the load process of a new resource.
Parameterspath: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():StringReturns
String |
| unload | () | method |
public function unload(entryName:String):void
Unloads a given resource specified by entryName.
entryName:String — The name of the resource to unload.
|
| unloadAll | () | method |
public function unloadAll():voidUnloads all resources.