*can't use* {:}
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erik Bianchi
Sent: Friday, February 09, 2007 10:25 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Identifier expected
2 issues:
1) identifiers are an expression not a string ie a:"hey" vs "a":"hey". The
later will not work
2) You can not use a number as identifier in this case. The compiler catches
it and throws an error. However, you can hack it using this[1] = "hello
world"; trace(this[1]); but then you can use {:} type syntax.
-erik
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mendelsohn,
Michael
Sent: Friday, February 09, 2007 10:09 AM
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
_______________________________________________
[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