Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Lists in lists

    Is it posible to have multiple lists make up a list?, or to make an array or matrix of strings? I am making a tetris style game and I need to know where blocks are and what kind they are over a 12x6 area. I gave it a quick look and I don't see anything about arrays or matrixes. There's an easy workaround but it's not very scalable. Any help would be appreciated


    squirrelyjones webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Lists
      Hi I am working with text in a list in the movie script, and I need to create a paragraph brake. Is there anyone who can tell me what icon or...
    2. 2 lists
      On an ASP page I'm displaying all the records from a db table with checkboxes. I want to check another table to see if that ssn exist on that...
    3. Lists within Lists???
      I need to put numerous property lists (each with about 5 properties) in one main list. I think I'm being stupid but I can't seem to get it to work...
    4. Lists...
      Hey, Currently I have many lists in my program; spriteList, spriteMemberList, textList, ect. I'm curious if it's just better (in terms of if it's...
    5. lists, attaching behaviour dynamiclly, update lists
      Hello, I am trying to get these scripts to work correctly. What I am trying to do is: 1) Look into a folder called 'tank,' then when this is...
  3. #2

    Default Re: Lists in lists

    well, it's easy as...lists :o)

    listA = [11,21,31]
    listB = ["AA","BB","CC"]
    ListList =[listA, listB]

    put ListList[1][2]
    -- 21
    put ListList[2][3]
    -- "CC"

    you can also look to propertyLists

    hth
    --
    ----------------
    -- Ned
    ----------------------------------------
    Bien faire et laisser braire
    ----------------------------------------
    "squirrelyjones" <webforumsuser@macromedia.com> a écrit dans le message de
    news:bqep98$l4f$1@forums.macromedia.com...
    | Is it posible to have multiple lists make up a list?, or to make an array
    or matrix of strings? I am making a tetris style game and I need to know
    where blocks are and what kind they are over a 12x6 area. I gave it a quick
    look and I don't see anything about arrays or matrixes. There's an easy
    workaround but it's not very scalable. Any help would be appreciated
    |
    |


    Ned Guest

  4. #3

    Default Re: Lists in lists

    Or even...

    listA = [1,2,3,4]
    listB = []
    add listB,listA
    add listB,2
    add listB,3

    put list B
    listB = [[1,2,3,4],2,3,]

    lists inside lists....


    Arturo



    "squirrelyjones" <webforumsuser@macromedia.com> escribió en el mensaje
    news:bqep98$l4f$1@forums.macromedia.com...
    > Is it posible to have multiple lists make up a list?, or to make an array
    or matrix of strings? I am making a tetris style game and I need to know
    where blocks are and what kind they are over a 12x6 area. I gave it a quick
    look and I don't see anything about arrays or matrixes. There's an easy
    workaround but it's not very scalable. Any help would be appreciated
    >
    >

    Arturo Toledo Guest

  5. #4

    Default Re: Lists in lists

    Score! Thanks guys.



    squirrelyjones webforumsuser@macromedia.com 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