As you have discovered you are not able to use numbers as keys in line objects. Trying to do what you do will however not change this. Only way to do what you want would be to insert the indexes manually:

function createObj():Void {
        this._data = new Object();
        this._data["a"] = new Object();
        this._data["a"][1] = new Number(0)
        ....
}




Mendelsohn, Michael wrote:
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)}; }
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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