Nesting Arrays within arrays.

Ask a Question related to Macromedia Flash Ad Development, Design and Development.

  1. #1

    Default Nesting Arrays within arrays.

    How do i nest an array inside another array?

    something like

    array(i).aray2(j);

    Can I do that?




    JimmySlam Guest

  2. Similar Questions and Discussions

    1. Arrays!
      i have an xml file with the values 1,2,3,4 in it. they are parsed into an array which puts them into a combo box. the user selects the value...
    2. [PHP] help with arrays
      Chris W. Parker <> on Tuesday, September 23, 2003 1:38 PM said: Hmm... maybe www.php.net/array_keys will help me out here. chris.
    3. Help req with arrays
      I want to use arrays in my website (flat file for a guestbook), but despite having read through countless online tutorials on the topic, I just...
    4. Using arrays for look-ups
      Hi, Just a quick sanity check... Sometimes it's useful to use an array as a kind of reverse lookup. For example, the indexes being productIDs...
    5. Help with Arrays in ASP
      Hello, I can anyone help me with the following: I have an array in ASP called WordsArray() which contains several words. What I would like to...
  3. #2

    Default Re: Nesting Arrays within arrays.

    You can set up an array to have depths using square brackets e.g.
    myArray = new Array(,)
    and then reference it using multiple square brackets e.g. in the above example
    myArray = 4

    Is that what you mean?

    unilooney Guest

  4. #3

    Default Re: Nesting Arrays within arrays.

    SO that would be like...
    Array(1,1)="Hi"
    Array(1,2)="Hello"


    The only problem is i am using the first Array with registers.. (or whatever
    name it is called).... like this

    Array1(i).id
    Array1(i).name
    Array1(i).title
    ..
    ..
    ..



    Te second array would have only two kinds of "registers"....

    Array2(i).xpics
    Array2(i).xtexts


    That is why the 2 arrays on 1....



    IS another better way to do it?

    Cheers




    "unilooney" <webforumsuser@macromedia.com> wrote in message
    news:dv8lst$eiu$1@forums.macromedia.com...
    > You can set up an array to have depths using square brackets e.g.
    > myArray = new Array(,)
    > and then reference it using multiple square brackets e.g. in the above
    > example
    > myArray = 4
    >
    > Is that what you mean?
    >

    JimmySlam Guest

  5. #4

    Default Re: Nesting Arrays within arrays.

    What about if i do something like:

    Array1(i).xpics1
    Array1(i).xpics2
    Array1(i).xpics3
    Array1(i).xpics4


    How do I create that I have an idea but I dont thing it will work... How is
    exactly?

    Array1(i)[xpics+j] = "a";

    How is that correct?


    Thanks




    "unilooney" <webforumsuser@macromedia.com> wrote in message
    news:dv8lst$eiu$1@forums.macromedia.com...
    > You can set up an array to have depths using square brackets e.g.
    > myArray = new Array(,)
    > and then reference it using multiple square brackets e.g. in the above
    > example
    > myArray = 4
    >
    > Is that what you mean?
    >

    JimmySlam Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139