4 Replies Latest reply on Oct 20, 2007 10:32 PM by kglad

    loop or array

    uxk Level 1
      Hi,
      My question is which method to use in the following: I need to drop stones one after the other into a pond to get it filled.
      Do I have to make use of an array or loop condition? I am not sure. Kindly guide me to an example where I can refer to the codes or at least gve me some starting hints.

      Thank you
      uxk
        • 1. Re: loop or array
          robdillon Most Valuable Participant
          How are you dropping the stones? Is one stone dropped every time a button is clicked? Or, do the stones drop at a steady rate while a button is held down? Do you need to keep track of the stones for some reason after they are dropped?

          Is this AS2 or AS 3?
          • 2. Re: loop or array
            uxk Level 1
            Rob,
            I am just draging and dropping the stones, one by one, into the pond. I want to show that after each throw, the water level rises. So I can drag and drop any one stone at a time. The water level will be determined by the number of throws or stones it contains.

            I am still dealing with AS 2.

            Thanks
            uxk
            • 3. loop or array
              uxk Level 1
              Hi,
              Any thoughts whch direction should I take to start with?

              Thank you
              uxk
              • 4. Re: loop or array
                kglad Adobe Community Professional & MVP
                when you drop the stones use a loop to update the stone's _y property or use the tween class.