[mtasc] array index, byte and compiler problem

Lorenzo Sicilia arnor at kemen.it
Mon Nov 21 11:32:54 CET 2005


Alle 15:08, domenica 20 novembre 2005, Armencho ha scritto:
> ActionScript is NOT Java, it is conformant to a Java-like JavaScript
> 2.0 and ECMAScript class oriented script proposal. In practice it
> means, that arrays, even though natively implemented, use properties
> as indexes. In other words:
>
> array[0] == array["0"]; //should output true
>
> The thing is, that 'array' object has a property with the name '0' and
> thats all there is to it. Even though MMC compiles the source fine, I
> think MTASC' behavior is the correct one. However this is a preference
> issue, since an array should be able to index numbers not strings only

ok, I fixed it with some small changes in my array controlList. I put a class 
in the array and in each object there is the mask a other properties

many thank for the answer.

regards lorenzo




More information about the mtasc mailing list