A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] How do I declare?

  1. #1
    Senior Member Wancieho's Avatar
    Join Date
    May 2002
    Posts
    370

    [F8] How do I declare?

    A multidimensional array using good coding practice? I know the below works but I dont like it:

    Code:
    var testing:Array = new Array();
    testing[0] = new Array();
    Id like to use something like var testing[0]:Array = new Array(); but it doesnt work.....

  2. #2
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    You could do:
    code:

    var testing:Array=[];

    for(var a=0;a<10;a++){
    var arr:Array=[];
    testing[a]=arr;
    }



    K.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center