Load
| Kind of class: | class |
|---|---|
| Inherits from: | EventDispatcher < CoreObject |
| Implements: | |
| Known subclasses: | |
| Version: | 05/06/07 |
| Author: | Aaron Clinger |
| Classpath: | org.casaframework.load.base.Load |
| File last modified: | Sunday, 19 August 2007, 13:43:25 |
Base load class. Class needs to be extended further to function properly.
Since:
Flash Player 7
Events broadcast to listeners:
onLoadStart = function (sender:Load) {} onLoadComplete = function (sender:Load) {} onLoadError = function (sender:Load) {} onLoadInit = function (sender:Load) {} Summary
Instance properties
Instance properties inherited from EventDispatcher
Instance properties inherited from CoreObject
Instance methods
Instance methods inherited from EventDispatcher
Instance methods inherited from CoreObject
Class properties
EVENT_LOAD_COMPLETE
static EVENT_LOAD_COMPLETE:String = 'onLoadComplete'(read,write)
EVENT_LOAD_ERROR
static EVENT_LOAD_ERROR:String = 'onLoadError'(read,write)
EVENT_LOAD_INIT
static EVENT_LOAD_INIT:String = 'onLoadInit'(read,write)
EVENT_LOAD_START
static EVENT_LOAD_START:String = 'onLoadStart'(read,write)
Instance methods
destroy
function destroy () : Void
Removes any internal variables, intervals, enter frames, internal MovieClips and event observers to allow the object to be garbage collected.
Always call
#Always call
destroy() before deleting last object pointer.Specified by:
getFilePath
function getFilePath () : String
Retrieves the path to the file that is to be loaded.
#Returns:
String containing the path to the file.
#Specified by:
hasLoaded
function hasLoaded () : Boolean
Determines whether the requested file has finished loading.
#Returns:
Returns
#true if file has completely loaded; otherwise false.Specified by:
isLoading
function isLoading () : Boolean
Determines whether the requested file is in the process of loading.
#Returns:
Returns
#true if the file is currently loading; otherwise false.Specified by:
start
function start () : Void
Begins the loading process and broadcasts events to observers.
Usage note:
Use org.casaframework.event.EventDispatcher.addEventObserver to listen for broadcasted events.
Events broadcast to listeners:
onLoadStart = function (sender:Load) {} Specified by:
stop
function stop () : Void
Unloads a file that has previously loaded, or cancels a currently loading file from completing.
Usage note:
If you issue this command while a file is loading, event
onLoadError is also invoked.Specified by: