File has finished processing.
File has been destroyed
The File has errored somehow during processing.
File failed to load
File has loaded successfully, awaiting processing
File has been started to load by the loader (onLoad called)
File is in the load queue but not yet started
File was populated from local data and doesn't need an HTTP request
File is being processed (onProcess callback)
The Loader has completed loading and processing.
The Loader has been destroyed.
The Loader is idle.
The Loader is actively loading.
The Loader is processing files is has loaded.
The Loader is shutting down.
Given a File and a baseURL value this returns the URL the File will use to download from.
name | type | description |
---|---|---|
file | Phaser.Loader.File |
The File object. |
baseURL | string |
A default base URL. |
The URL the File will use.
Takes two XHRSettings Objects and creates a new XHRSettings object from them.
The new object is seeded by the values given in the global settings, but any setting in the local object overrides the global ones.
name | type | description |
---|---|---|
global | Phaser.Types.Loader.XHRSettingsObject |
The global XHRSettings object. |
local | Phaser.Types.Loader.XHRSettingsObject |
The local XHRSettings object. |
A newly formed XHRSettings object.
Creates a new XMLHttpRequest (xhr) object based on the given File and XHRSettings and starts the download of it. It uses the Files own XHRSettings and merges them with the global XHRSettings object to set the xhr values before download.
name | type | description |
---|---|---|
file | Phaser.Loader.File |
The File to download. |
globalXHRSettings | Phaser.Types.Loader.XHRSettingsObject |
The global XHRSettings object. |
The XHR object.
Creates an XHRSettings Object with default values.
name | type | arguments | Default | description |
---|---|---|---|---|
responseType | XMLHttpRequestResponseType | <optional> | '' |
The responseType, such as 'text'. |
async | boolean | <optional> | true |
Should the XHR request use async or not? |
user | string | <optional> | '' |
Optional username for the XHR request. |
password | string | <optional> | '' |
Optional password for the XHR request. |
timeout | number | <optional> | 0 |
Optional XHR timeout value. |
withCredentials | boolean | <optional> | false |
Optional XHR withCredentials value. |
The XHRSettings object as used by the Loader.