Load
| Kind of class: | class |
|---|---|
| Inherits from: | EventDispatcher < CoreObject |
| Implements: | |
| Known subclasses: | |
| Version: | 05/06/07 |
| Author: | Aaron Clinger |
| Classpath: | org.casalib.load.base.Load |
| File last modified: | Monday, 01 December 2008, 13:34:40 |
Base load class. Class needs to be extended further to function properly.
Since:
- Flash Player 7
Events broadcasted to listeners:
onLoadStart = function (sender:Load) {}onLoadComplete = function (sender:Load) {}onLoadError = function (sender:Load) {}onLoadInit = function (sender:Load) {}
Summary
Class properties
- EVENT_LOAD_START : String
- EVENT_LOAD_ERROR : String
- EVENT_LOAD_COMPLETE : String
- EVENT_LOAD_INIT : String
Instance methods
- start : Void
- Begins the loading process and broadcasts events to observers.
- stop : Void
- Unloads a file that has previously loaded, or cancels a currently loading file from completing.
- getFilePath : String
- Retrieves the path to the file that is to be loaded.
- hasLoaded : Boolean
- Determines whether the requested file has finished loading.
- isLoading : Boolean
- Determines whether the requested file is in the process of loading.
- destroy : Void
- Removes any internal variables, intervals, enter frames, internal MovieClips and event observers to allow the object to be garbage collected.Instance methods inherited from EventDispatcherInstance methods inherited from CoreObject
- destroy : Void
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 () : VoidRemoves any internal variables, intervals, enter frames, internal MovieClips and event observers to allow the object to be garbage collected.#
Always callfilePathbefore deleting last object pointer.Overrides:Specified by:getFilePath
function getFilePath () : StringRetrieves the path to the file that is to be loaded.#Returns:- String containing the path to the file.#
Specified by:hasLoaded
function hasLoaded () : BooleanDetermines whether the requested file has finished loading.#Returns:- Returns#
filePathif file has completely loaded; otherwiseonLoadError.
Specified by:isLoading
function isLoading () : BooleanDetermines whether the requested file is in the process of loading.#Returns:- Returns#
"onLoad"if the file is currently loading; otherwise"onLoad".
Specified by:start
function start () : VoidBegins the loading process and broadcasts events to observers.Usage note:- Use org.casalib.event.EventDispatcher.addEventObserver to listen for broadcasted events.
Events broadcasted to listeners:onLoadStart = function (sender:Load) {}
Specified by:stop
function stop () : VoidUnloads 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
onLoadErroris also invoked.
Specified by: - isLoading : Boolean
- hasLoaded : Boolean