[osflash] Type error in Array initialization
Chris Allen
mrchrisallen at gmail.com
Fri Mar 14 11:43:05 PDT 2008
Barak,
Perhaps then you were using one of the hacked version of MTASC on one
of the computers. I would also check the versions on those computers
to make sure they are the same. Other than that I have no idea. Sorry!
I haven't used AS2 or MTASC in over a year. It's all been AS3 work
lately.
Best of luck!
-Chris
On Mar 12, 2008, at 11:41 PM, Barak Ori wrote:
> Chris,
>
> I'm only using MTASC both at home and at work. I'm getting an error
> at home, which I need to understand (and solve), if I would have
> used something other than MTASC I would have had no problem, as
> these would be just comments.
>
> Thanks,
> Barak
>
> On Wed, Mar 12, 2008 at 2:41 PM, Chris Allen
> <mrchrisallen at gmail.com> wrote:
> Barak,
>
> That feature "generics" in ActionScript is just a handy thing that
> Nicolas added to the open source MTASC compiler. It's not an
> official part of the language. So expecting any other compiler,
> particularly Adobe's to understand that entry in the array should be
> a Number is simply not going to work.
>
> I hope that helps.
>
> -Chris
>
> On Mar 11, 2008, at 7:42 PM, Barak Ori wrote:
>
>> Hi,
>>
>> Trying to compile an AS file at home, I get the following error:
>>
>> type error Array should be #Number.Array
>>
>> on the following line:
>>
>> private static var FONT_SIZES:/*Number*/Array = /*Number*/[14, 14,
>> 12, 10];
>>
>> Now I have two issues with this:
>> How do I specify an array literal of the type /*Number*/Array?
>> At work, compiling the same code using MTASC works fine. So is this
>> a new/old feature? It would be quite hard for me to trace the exact
>> version of the MTASC that runs at work, since there are multiple
>> levels of redirections within our build system. The version I'm
>> using at home is 1.13.
>> Thanks,
>> Barak
>> _______________________________________________
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20080314/058f31d4/attachment.html
More information about the osflash
mailing list