PreloadJS

PreloadJS  0.1.0

PreloadJS > PreloadJS > AbstractLoader
Search:
 
Filters

Class AbstractLoader

Known Subclasses:
TagLoader XHRLoader PreloadJS
The base loader, which handles all callbacks. All loaders should extend this class.

Constructor

AbstractLoader ( )

Properties

loaded - Boolean

Determine if this loader has completed already.
Default Value: false

progress - Number

The current load progress (percentage) for this item.
Default Value: 0

Methods

cancel

void cancel ( )
Cancel the load.
Returns: void

getItem

Object getItem ( )
Get a reference to the manifest item that is loaded by this loader.
Returns: Object
The manifest item

load

void load ( )
Begin the load.
Returns: void

Events

onComplete

onComplete ( )
The callback to fire when all loading is complete.

onFileError

onFileError ( )
The callback to fire when the loader encounters an error. If the error was encountered by a file, the event will contain the required file data, but the target will be the loader.

onFileLoad

onFileLoad ( )
The callback to fire when a file completes.

onFileProgress

onFileProgress ( )
The callback to fire when a file progress changes.

onLoadStart

onLoadStart ( )
The callback to fire when a load starts.

onProgress

onProgress ( )
The callback to fire when progress changes.