cliffan Posted May 20, 2015 Share Posted May 20, 2015 help mei don`t want create other loader. Quote Link to comment Share on other sites More sharing options...
xerver Posted May 20, 2015 Share Posted May 20, 2015 Have you tried? It should just work... Quote Link to comment Share on other sites More sharing options...
cliffan Posted May 21, 2015 Author Share Posted May 21, 2015 can this work? PIXI.loader .add('aaa.dat', 'aaa.dat', { xhrType: 'blob'}) .load(onDataLoaded);function onDataLoaded(loader, res) { alert(res["aaa.data"]);} Quote Link to comment Share on other sites More sharing options...
xerver Posted May 21, 2015 Share Posted May 21, 2015 Yes, but you should use the constants exposed for you: https://github.com/englercj/resource-loader/blob/master/src/Resource.js#L675-L695 PIXI.loader .add('aaa.dat', 'aaa.dat', { xhrType: PIXI.loaders.Resource.XHR_RESPONSE_TYPE.BLOB }) .load(onDataLoaded);function onDataLoaded(loader, res) { alert(res["aaa.data"]);} Quote Link to comment Share on other sites More sharing options...
cliffan Posted May 22, 2015 Author Share Posted May 22, 2015 thank you very much! Quote Link to comment Share on other sites More sharing options...
cliffan Posted May 22, 2015 Author Share Posted May 22, 2015 i tried, no error, but onDataLoaded can`t be callback Quote Link to comment Share on other sites More sharing options...
xerver Posted May 22, 2015 Share Posted May 22, 2015 Create a test case that reproduces your problem and open an issue on github: https://github.com/englercj/resource-loader/issues Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.