Packagevn.karaokeplayer.utils
Classpublic class AssetLoader

Simple loader to load different assets



Public Properties
 PropertyDefined by
  completed : Signal
Notifies when load completed
AssetLoader
  data : *
AssetLoader
  failed : Signal
Notifies when load failed
AssetLoader
  progress : Signal
Notifies during load progress
Arguments: AssetLoader, percent, byteLoaded, byteTotal
AssetLoader
  type : String
AssetLoader
  url : String
AssetLoader
Public Methods
 MethodDefined by
  
AssetLoader
  
dispose():void
AssetLoader
  
load(url:String):void
Loads the asset at url.
AssetLoader
Property detail
completedproperty
public var completed:Signal

Notifies when load completed

dataproperty 
public var data:*
failedproperty 
public var failed:Signal

Notifies when load failed

progressproperty 
public var progress:Signal

Notifies during load progress
Arguments: AssetLoader, percent, byteLoaded, byteTotal

typeproperty 
public var type:String
urlproperty 
public var url:String
Constructor detail
AssetLoader()constructor
public function AssetLoader()
Method detail
dispose()method
public function dispose():void
load()method 
public function load(url:String):void

Loads the asset at url.
Curently accept: .mp3, .swf, .png, .gif, .jpg
Other extensions are treated as text
TODO: add loader context for cross domain checking

Parameters
url:String