URLLoader implementation using ByteArray

Bug #998789 reported by Philippe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jeash
Fix Committed
Undecided
Unassigned

Bug Description

URLLoader is using ByteArray which is using DataView class only available (apparently) from Firefox 15+.

That's even if you're loading simple text (XML/etc) in NME's Assets.getText. What about falling back to simpler implementation for text? Would make Jeash compatible with more browsers...

Revision history for this message
Niel Drummond (niel-drummond) wrote :

nme.Assets should now sniff for some basic ASCII file extensions.

Changed in jeash:
status: New → Fix Committed
Revision history for this message
Philippe (philippe-elsass) wrote :

I'm compiling my project and now getText("asset/RunnerMark.xml") returns null.

Revision history for this message
Niel Drummond (niel-drummond) wrote : Re: [Bug 998789] [NEW] URLLoader implementation using ByteArray

You probably need to recompile the neko binary for the NME compiler/build-tool.

On 15/05/2012, Philippe <email address hidden> wrote:
> I'm compiling my project and now getText("asset/RunnerMark.xml") returns
> null.
>
> --
> You received this bug notification because you are subscribed to jeash.
> https://bugs.launchpad.net/bugs/998789
>
> Title:
> URLLoader implementation using ByteArray
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/jeash/+bug/998789/+subscriptions
>

--
Sent from my mobile device

Revision history for this message
Philippe (philippe-elsass) wrote :

Ah you're right, sorry.

However you broke Flash compilation - it still must extend ByteArray.

On Tue, May 15, 2012 at 9:21 AM, Niel Drummond <<email address hidden>
> wrote:

> You probably need to recompile the neko binary for the NME compiler
> /build-tool.
>
> On 15/05/2012, Philippe <email address hidden> wrote:
> > I'm compiling my project and now getText("asset/RunnerMark.xml") returns
> > null.
> >
> > --
> > You received this bug notification because you are subscribed to jeash.
> > https://bugs.launchpad.net/bugs/998789
> >
> > Title:
> > URLLoader implementation using ByteArray
> >
> > To manage notifications about this bug go to:
> > https://bugs.launchpad.net/jeash/+bug/998789/+subscriptions
> >
>
> --
> Sent from my mobile device
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/998789
>
> Title:
> URLLoader implementation using ByteArray
>
> Status in Jeash haXe:
> Fix Committed
>
> Bug description:
> URLLoader is using ByteArray which is using DataView class only
> available (apparently) from Firefox 15+.
>
> That's even if you're loading simple text (XML/etc) in NME's
> Assets.getText. What about falling back to simpler implementation for
> text? Would make Jeash compatible with more browsers...
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/jeash/+bug/998789/+subscriptions
>

--
Philippe

Revision history for this message
Philippe (philippe-elsass) wrote :

Just a reminder:
you broke NME Flash's text embedding because it incorrectly generates
classes extending String.

On Tue, May 15, 2012 at 11:35 AM, Philippe Elsass <<email address hidden>
> wrote:

> Ah you're right, sorry.
>
> However you broke Flash compilation - it still must extend ByteArray.
>
> On Tue, May 15, 2012 at 9:21 AM, Niel Drummond <
> <email address hidden>> wrote:
>
>> You probably need to recompile the neko binary for the NME compiler
>> /build-tool.
>>
>> On 15/05/2012, Philippe <email address hidden> wrote:
>> > I'm compiling my project and now getText("asset/RunnerMark.xml") returns
>> > null.
>> >
>> > --
>> > You received this bug notification because you are subscribed to jeash.
>> > https://bugs.launchpad.net/bugs/998789
>> >
>> > Title:
>> > URLLoader implementation using ByteArray
>> >
>> > To manage notifications about this bug go to:
>> > https://bugs.launchpad.net/jeash/+bug/998789/+subscriptions
>> >
>>
>> --
>> Sent from my mobile device
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/998789
>>
>> Title:
>> URLLoader implementation using ByteArray
>>
>> Status in Jeash haXe:
>> Fix Committed
>>
>> Bug description:
>> URLLoader is using ByteArray which is using DataView class only
>> available (apparently) from Firefox 15+.
>>
>> That's even if you're loading simple text (XML/etc) in NME's
>> Assets.getText. What about falling back to simpler implementation for
>> text? Would make Jeash compatible with more browsers...
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/jeash/+bug/998789/+subscriptions
>>
>
>
>
> --
> Philippe
>

--
Philippe

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.