PIXI. SpineLoader

new SpineLoader(url, crossorigin)

The Spine loader is used to load in JSON spine data To generate the data you need to use http://esotericsoftware.com/ and export in the "JSON" format Due to a clash of names You will need to change the extension of the spine file from .json to .anim for it to load See example 12 (http://www.goodboydigital.com/pixijs/examples/12/) to see a working example and check out the source You will need to generate a sprite sheet to accompany the spine data When loaded this class will dispatch a "loaded" 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/SpineLoader.js, line 10

Members

crossorigin :Boolean

Whether the requests should be treated as cross origin

Source - pixi/loaders/SpineLoader.js, line 34

<readonly> loaded :Boolean

[read-only] Whether the data has loaded yet

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

url :String

The url of the bitmap font data

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

Methods

load()

Loads the JSON data

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