[osflash] class extends Array woes
Tim Knip
t.knip at suite75.com
Mon Nov 28 23:19:00 EST 2005
> Works like a charm in Flash8
Sorry list... I'm a dumb fool:
In my class extending Array there was a property 'length' which returned a
vector's length, not the Array's size...
Ahum.
T
Ps: Hehe: but it *did* work in F7... Apparently MM added a check for length
when an array is modified.
-----Oorspronkelijk bericht-----
Van: osflash-bounces at osflash.org [mailto:osflash-bounces at osflash.org] Namens
Ralf Bokelberg
Verzonden: maandag 28 november 2005 22:55
Aan: Open Source Flash Mailing List
Onderwerp: Re: [osflash] class extends Array woes
Works like a charm in Flash8
Cheers,
Ralf.
Tim Knip wrote:
> Hi list,
>
> Sorry for this slight OT post, but I'm going nuts:
> I have a class extending Array:
>
> - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +
> class Vec3D extends Array {
> function Vec3D(x, y, z) {
> this[0] = x; this[1] = y; this[2] = z;
> }
> }
>
> - - - - - - - - - - - - - - - - - -
> var v:Vec3D = new Vec3D(0,0,0);
>
> v[0] += 100; // result as expected: 100
> v[1] += 100; // NaN in F8 !!??? works in F7
> v[2] += 100; // NaN in F8 !!??? Works in F8
>
> - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +
>
> Am I doing something *really* stupid here?
> Or did something change in F8 (must be, cause works in 7)?
>
> Thanks,
> Tim Knip
>
>
>
> -----Oorspronkelijk bericht-----
> Van: osflash-bounces at osflash.org [mailto:osflash-bounces at osflash.org]
Namens
> Nicolas Cannasse
> Verzonden: maandag 28 november 2005 17:29
> Aan: Open Source Flash Mailing List
> Onderwerp: Re: [osflash] Using components in FAME development
>
> Igor V. Sadovskiy wrote:
>
>>Hello Justin.
>>
>>I have the same issue.
>>
>>I've reported it to Nicolas about a month ago and it's already in his TODO
>>list. But it seems he is working on HaXe now and have no a lot of time to
>>work on MTASC's fixes...
>>
>>Igor
>
>
> Just took some time to fix it on CVS :)
>
> Nicolas
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
_______________________________________________
osflash mailing list
osflash at osflash.org
http://osflash.org/mailman/listinfo/osflash_osflash.org
More information about the osflash
mailing list