dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] [F8] 2D arrays

Hybrid View

  1. #1
    Member
    Join Date
    Nov 2003
    Location
    Ontario, Canada
    Posts
    80

    resolved [RESOLVED] [F8] 2D arrays

    IS it possible to declare a 2d array without bounds like you can a 1d array?

    var newArray = new Array();

    then use it like:

    newArray[0][0] = "First Element";

  2. #2
    Member
    Join Date
    Jul 2007
    Posts
    77
    you have to define newArray[0] as an array first

    var newArray = new Array();
    newArray[0] = new Array();
    newArray[0][0] = "first element"
    www.ugonna-nwosu.com
    If at first you don't succeed... Try not to look suprised.

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