Class: JsonLoader

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 34

crossorigin :Boolean

Whether the requests should be treated as cross origin

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

<readonly> loaded :Boolean

[read-only] Whether the data has loaded yet

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

url :String

The url of the bitmap font data

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

Methods

load()

Loads the JSON data

Source - pixi/loaders/JsonLoader.js, line 59
Phaser Copyright © 2012-2014 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Sat Nov 15 2014 19:55:17 GMT-0000 (GMT) using the DocStrap template.