[osflash] Type error in Array initialization (2)
Barak Ori
barakori at gmail.com
Tue Mar 11 23:00:28 PDT 2008
I'm resending the below message, as it didn't show up in my inbox after 6
hours...
---------- Forwarded message ----------
From: Barak Ori <barakori at gmail.com>
Date: Tue, Mar 11, 2008 at 4:42 PM
Subject: Type error in Array initialization
To: Open Source Flash Mailing List <osflash at osflash.org>
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:
1. How do I specify an array literal of the type /*Number*/Array?
2. 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20080311/5f4489bf/attachment.html
More information about the osflash
mailing list