Ejecta and local json file?
I believe i think to complicated but how can i load a json file from the local App folder? For example a texturepacker or a tiled json file?
Regards
samowitsch
1 decade ago
by dominic
Good question. I just pushed two new functions to the
repo on github.
var someText = ejecta.loadText( 'text-file.txt' );
var someObject = ejecta.loadJSON( 'json-file.js' );
Edit: These functions no longer exist in Ejecta 1.4. Use
XMLHttpRequest instead. Thx glhg.
Tested and runs good ;o) !
1 decade ago
by glhg
is that still up and workin' in EJ 1.4 ?
I can't have my JSN loaded.
i'm stack with 'undefined' is not a function (evaluating 'ejecta.loadJSON...)
I'm probably doing something wrong....
Thx for your help
1 decade ago
by glhg
ok sorry. I didn't tried XMLHttpRequest().
this seems to do the job instead.
Page 1 of 1
« first
« previous
next ›
last »