hi list -

i thought that flash supported 2d arrays of the [x][y] syntax persuasion.
can someone give me some pointers what I'm doing wrong?
maybe you cant create arrays this way, you can only access them?

function artest() {
        var arr = new Array();
        arr[1][1] = "whatsup";
        arr[3] = "three";
        trace("arr is:");
        trace(arr);
        trace(arr[1][1]);       // undefined
        trace(arr[3]);          // three
}

arr is:
undefined,undefined,undefined,three
undefined
three


--
-------------------------------------------
     David "DC" Collier
mailto:[EMAIL PROTECTED]
     +81 (0)80 6521 9559
     skype: callto://d3ntaku
-------------------------------------------
     Pikkle 株式会社
     http://www.pikkle.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