google-code-export / nekonme

Automatically exported from code.google.com/p/nekonme
1 stars 0 forks source link

Assets.getText and Jeash #146

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Assets.getText not working on html5 target (jeash).

This code is still working with all targets.
var ldr:URLLoader = new URLLoader();
ldr.addEventListener(Event.COMPLETE, function(e:Event){
trace(ldr.data);
});
ldr.load(new URLRequest("Assets/texts/text.txt"));

Sorry for my bad english :)

Original issue reported on code.google.com by suateyr...@gmail.com on 8 Oct 2011 at 7:50

GoogleCodeExporter commented 9 years ago
I  think the problem is that Jeash's version of getText uses a binary reader 
implementation which in turn is incompatible with some browsers such as IE9 
because it uses Typed Arrays. A fix would be to have the team fallback to a 
regular plain text reader instead.

I've opened up an issue here about this in hopes that I'll get a workaround for 
now.
http://www.haxenme.org/community/forums/bugs/jeash-ie9-are-incompatible/

Original comment by sten...@gmail.com on 18 Sep 2012 at 8:02