PIXI. JsonLoader

new JsonLoader(url, crossorigin)

The json file loader is used to load in JSON data and parse it When loaded this class will dispatch a 'loaded' event If loading fails this class will dispatch an 'error' event

Parameters:
Name Type Description
url String

The url of the JSON file

crossorigin Boolean

Whether requests should be treated as crossorigin

Source - pixi/loaders/JsonLoader.js, line 5

Members

<readonly> baseUrl :String

[read-only] The base url of the bitmap font data

Source - pixi/loaders/JsonLoader.js, line 33

crossorigin :Boolean

Whether the requests should be treated as cross origin

Source - pixi/loaders/JsonLoader.js, line 25

<readonly> loaded :Boolean

[read-only] Whether the data has loaded yet

Source - pixi/loaders/JsonLoader.js, line 42

url :String

The url of the bitmap font data

Source - pixi/loaders/JsonLoader.js, line 17

Methods

load()

Loads the JSON data

Source - pixi/loaders/JsonLoader.js, line 57
Phaser Copyright © 2012-2014 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Tue Nov 25 2014 00:18:16 GMT-0000 (GMT) using the DocStrap template.