pixi.loaders.ResourceLoader
- type
- class
- extends
- pixi.interaction.EventEmitter
- subclasses
- pixi.loaders.Loader
Constructor
- parameters
[baseUrl=''] {string} The base url for all resources loaded by this loader.
[concurrency=10] {number} The number of resources to load concurrently.
- parameters
[name] {string} The name of the resource to load, if not passed the url is used.
url {string} The url for this resource, relative to the baseUrl of this loader.
[options] {object} The options for the load.
[options.crossOrigin] {boolean} Is this request cross-origin? Default is to determine automatically.
[options.loadType=Resource.LOAD_TYPE.XHR] {Resource.XHR_LOAD_TYPE} How should this resource be loaded?
[options.xhrType=Resource.XHR_RESPONSE_TYPE.DEFAULT] {Resource.XHR_RESPONSE_TYPE} How should the data being loaded be interpreted when using XHR?
[callback] {function} function to call when this specific resource completes loading.
- returns
- {Loader}
- parameters
{String} event Name of the event.
{function} fn Callback function.
{Mixed} context The context of the function.
- parameters
middleware {function} The middleware function to register.
- returns
- {Loader}
- parameters
middleware {function} The middleware function to register.
- returns
- {Loader}
- parameters
eventName {String} The name of the event.
- returns
- {Bool} Indication if we've emitted an event.
- parameters
{String} eventName
- returns
- {Array}
- parameters
[callback] {function} Optional callback that will be bound to the `complete` event.
- returns
- {Loader}
- parameters
{String} event The event we want to remove.
{function} fn The listener that we need to find.
{Bool} once Only remove once listeners.
- parameters
{String} event Name of the event.
{function} fn Callback function.
{Mixed} context The context of the function.
- parameters
{String} event Name of the event.
{function} fn Callback function.
{Mixed} context The context of the function.
- parameters
{function} function to call
- parameters
{String} event The event want to remove all listeners for.
- parameters
{String} event The event we want to remove.
{function} fn The listener that we need to find.
{Bool} once Only remove once listeners.
- parameters
{function} function to call