> Hi list...
> 
> Simple question -- why doesn't the 2nd line work?  The 
> identifier expected error is traced at compile time.
> 
> Thanks,
> - Michael M.
> 
> 
> function createObj():Void {
>       this._data = new Object();
>       this._data["a"] = {"1":new Number(0), "2":new 
> Number(0), "3":new Number(0)}; } 

You can tell that Michael is mostly a Director user, can't you? :)

In Lingo, we have property lists, which can use strings or numbers as
properties. So ["1":0, "2":0, "3":0] would be a valid Lingo propList, but
ActionScript isn't quite the same, as others have explained. My guess is
that you're trying to match an AS list to a Lingo list without worrying
about the fact that Lingo lists are 1-based rather than 0-based. A simpler
solution would be to use a Flash array where the first element is 0.

Danny

_______________________________________________
[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