API Docs for: 0.3.0
Show:

Preload.XHRLoader Class

Constructor

Preload.XHRLoader

(
  • file
)

Parameters:

  • file Object

Methods

getItem

() Object

Get a reference to the manifest item that is loaded by this loader.

Returns:

Object: The manifest item

getResult

()

Returns:

:

isBinary

(
  • type
)
private

Determine if a specific type should be loaded as a binary file

Parameters:

  • type Object

    The type to check

load

()

Begin the load.

Properties

loaded

Boolean

Determine if this loader has completed already.

Default: false

progress

Number

The current load progress (percentage) for this item.

Default: 0

Events

onComplete

The callback to fire when all loading is complete.

onError

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

The callback to fire when a file completes.

onFileProgress

The callback to fire when a file progress changes.

onLoadStart

The callback to fire when a load starts.

onProgress

The callback to fire when progress changes.