4 Replies Latest reply on Aug 18, 2006 10:52 AM by kglad

    error

    aniebel Level 2
      How do I stop this script from running? I am trying to get it to stop after the tween runs 6 times.

        • 1. Re: error
          kglad Adobe Community Professional & MVP
          don't execute the continueTo() method of your tween onMotionFinished. and there's no apparent need for your onEnterFrame handler or the for-loop.
          • 2. Re: error
            kglad Adobe Community Professional & MVP
            actually, it makes some sense to use your continueTo() method once (but no more than once unless you change to endpoint) to return the leaf to its original rotation:

            • 3. Re: error
              aniebel Level 2
              Thanks, what I'm attempting to do is get the leaf class to have a method that flutters so the leaf would have to rotate back and forth for 6 (or whatever variable I choose... I'll set that up once I get this to work) times. It doesn't look like what you've provided will do that???

              I see someone else has posted a similar question today. I'm keeping an eye on that post too.
              • 4. Re: error
                kglad Adobe Community Professional & MVP
                if you want it to flutter back and forth you need to use two different endpoints that you alternate between.