Access keys

LoaderWorker

Kind of class: class
Inherits from: Dispatcher
Author: Arthur Clemens, Martijn de Visser, added check for already loaded movies. These are now unloaded first., Martijn de Visser, implemented MovieClipLoader instead of MovieClip.loadMovie - major refactoring of code.
Classpath: org.asapframework.util.loader.LoaderWorker
File last modified: Monday, 06 November 2006, 08:09:16
Used internally by Loader.
Events broadcast to listeners:
LoaderWorkerEvent with type: ON_DONE
LoaderWorkerEvent with type: ON_ERROR
LoaderWorkerEvent with type: ON_PROGRESS
Nothing, not yet implemented.
Nothing, not implemented.

Constructor

LoaderWorker

function LoaderWorker (
inNumber:Number)
Creates a new LoaderWorker object.

Instance properties

loading

loading:Boolean
(read)
The loading state of the worker, true: the worker is currently loading; false: the worker has not yet started loading, or has finished or has encountered an error.

loadingData

loadingData:FileData
(read)
The FileData object.

Instance methods

load

function load (
inData:FileData) : Void
Starts loading content
Parameters:
data:
a FileData object

stopLoading

function stopLoading (
) : Void
Stops loading the asset

toString

function toString (
) : String
Returns:
Package and class name

Event handlers

onLoadComplete

function onLoadComplete (
target_mc:MovieClip, httpStatus:Number) : Void
Invoked when a file that was loaded with MovieClipLoader.loadClip() is completely downloaded.
Events broadcast to listeners:
Nothing, not implemented.

onLoadError

function onLoadError (
target_mc:MovieClip, errorCode:String, httpStatus:Number) : Void
Invoked when a file loaded with MovieClipLoader.loadClip() has failed to load.
Events broadcast to listeners:
LoaderWorkerEvent with type: ON_ERROR

onLoadInit

function onLoadInit (
target_mc:MovieClip) : Void
Invoked when the actions on the first frame of the loaded clip have been executed.

onLoadProgress

function onLoadProgress (
target_mc:MovieClip, loadedBytes:Number, totalBytes:Number) : Void
Invoked every time the loading content is written to the hard disk during the loading process (that is, between MovieClipLoader.onLoadStart and MovieClipLoader.onLoadComplete).
Events broadcast to listeners:
LoaderWorkerEvent with type: ON_PROGRESS

onLoadStart

function onLoadStart (
target_mc:MovieClip) : Void
Invoked when a call to MovieClipLoader.loadClip() has begun to download a file.
Events broadcast to listeners:
Nothing, not yet implemented.