Preload.XHRLoader Class
Constructor
Preload.XHRLoader
(
-
file
Parameters:
-
file
Object
Item Index
Methods
getItem
()
Object
Get a reference to the manifest item that is loaded by this loader.
Returns:
Object:
The manifest item
getResult
()
Returns:
:
isBinary
(
private
-
type
Determine if a specific type should be loaded as a binary file
Parameters:
-
type
ObjectThe 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.