JsonLoader Class
The json file loader is used to load in JSON data and parsing it When loaded this class will dispatch a 'loaded' event If load failed this class will dispatch a 'error' event
Constructor
JsonLoader
(
-
url
-
crossorigin
Parameters:
-
url
StringThe url of the JSON file
-
crossorigin
BooleanWhether requests should be treated as crossorigin
Methods
load
()
Loads the JSON data
onError
()
private
Invoke when error occured
onJSONLoaded
()
private
Invoke when JSON file is loaded
onLoaded
()
private
Invoke when json file loaded
Properties
baseUrl
String
[read-only] The base url of the bitmap font data
crossorigin
Boolean
Whether the requests should be treated as cross origin
loaded
Boolean
[read-only] Whether the data has loaded yet
url
String
The url of the bitmap font data