Also, if you dont want to go all the way to haXe, MTASC has added the
ability to indicate the type of an array. I forget the exact syntax,
but you put the type in a comment.

Regards
Hank

On 9/17/06, Mark Winterhalder <[EMAIL PROTECTED]> wrote:
On 9/17/06, dc <[EMAIL PROTECTED]> wrote:
> is there a way to tell flash what types an array contains?

Not in ActionScript, unless you make some custom methods that access
it and check for the type at runtime.
In haXe, however, you can do just that. It can compile for FlashPlayer
6/7/8/9, into existing SWFs (or create them if you want): <haxe.org>
The for..in loop also works like you described, and it has some other
really nice features.

Mark
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to