I didn't even notice that in the script before - should have been obvious. 
Sorry for the noise.

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
 
 

>>-----Original Message-----
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Rákos Attila
>>Sent: Friday, February 09, 2007 3:13 PM
>>To: Flashcoders mailing list
>>Subject: Re[2]: [Flashcoders] Identifier expected
>>
>>
>>MJ> OK, I see, so then curious why this script returns 
>>compiler errors:
>>MJ> 
>>MJ> function createData():Void {
>>MJ>     this._data = new Object();
>>MJ>     this._data["a"] = new Object();
>>MJ>     this._data["a"] = {"t1":0, "t2":0}; }
>>
>>Because when using the object initializer operator, you 
>>cannot use strings as identifiers (similarly to variable declaration).
>>In the above script the this._data["a"] = new Object(); line 
>>is simply not necessary, and the right syntax of the last one is:
>>
>>this._data["a"] = {t1:0, t2:0};
>>
>>or even better:
>>
>>this._data.a = {t1:0, t2:0};
>>
>>  Attila
>>
>>_______________________________________________
>>[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