AssetLoaderEvent
Kind of class: | public class |
---|---|
Package: | |
Inherits from: |
|
Dispatched by: | |
Classpath: | org.asaplibrary.util.loader.AssetLoaderEvent |
File last modified: | Wednesday, 11 May 2011, 18:57:14 |
Event object sent by AssetLoader. Subscribe to type
_EVENT
.Summary
Constructor
-
AssetLoaderEvent
(inSubtype:String, inName:String = "")
- Creates a new AssetLoaderEvent.
Constants
-
_EVENT
: String
- Event type.
-
START
: String
- Event subtype sent when a single object starts being loaded.
-
PROGRESS
: String
- Event subtype sent during loading.
-
COMPLETE
: String
- Event subtype sent when loading is done.
-
ALL_LOADED
: String
- Event subtype sent when all objects have been loaded.
-
ERROR
: String
- Event subtype sent when there's an error.
Instance properties
- subtype : String
- name : String
- totalBytesCount : uint
- loadedBytesCount : uint
- error : String
- loader : Loader
- loaderInfo : LoaderInfo
-
asset
: DisplayObject
- The loaded asset.
- url : String
Constructor
AssetLoaderEvent
function AssetLoaderEvent(inSubtype:String,
inName:String = "")
Creates a new AssetLoaderEvent.
Parameters
inSubtype:either subtype; see above
inName :(optional) identifier of the loading action
Constants
ALL_LOADED
static const ALL_LOADED:String = "allLoadFinished"
Event subtype sent when all objects have been loaded.
COMPLETE
static const COMPLETE:String = "loadDone"
Event subtype sent when loading is done.
ERROR
static const ERROR:String = "loadError"
Event subtype sent when there's an error.
PROGRESS
static const PROGRESS:String = "loadProgress"
Event subtype sent during loading.
START
static const START:String = "loadStart"
Event subtype sent when a single object starts being loaded.
_EVENT
static const _EVENT:String = "loaderStackEvent"
Event type.
Instance properties
asset
asset:DisplayObject(read,write)
The loaded asset. In case of an image: the Loader object; in case of an SWF: the Loader's content object.
error
error:String(read,write)
loadedBytesCount
loadedBytesCount:uint(read,write)
loader
loader:Loader(read,write)
loaderInfo
loaderInfo:LoaderInfo(read,write)
name
name:String(read,write)
subtype
subtype:String(read,write)
totalBytesCount
totalBytesCount:uint(read,write)
url
url:String(read,write)
Instance methods
clone
override function clone() : Event
Creates a copy of an existing AssetLoaderEvent.
Overrides
- Event.clone
toString
override function toString() : String
Overrides
- Event.toString