The second line does not work because you are evaluating a string to try
to resolve it to a property of the object, (which you are hoping is a
sub-object) that does not exist yet.  In other words,

this._data.a 

the .a in the above statement has not been declared or identified as an
object, and thus this._data["a"] resolves to nothing.

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
 
 

>>-----Original Message-----
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Mendelsohn, Michael
>>Sent: Friday, February 09, 2007 1:09 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] Identifier expected
>>
>>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)}; } 
>>_______________________________________________
>>[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