11 Replies Latest reply on Nov 13, 2007 8:14 AM by kglad

    Looping Sprite

    woopig
      Hey everybody. I am having a problem getting my sprite to quit looping after it is completed. Any pointers or suggestion would be helpful.
      Here is the .as:

      Frame 1 of sprite -
      _root.currentFrame+=1;
      _root.slides.gotoAndStop(_root.currentFrame);

      Last frame of sprite -
      if (_root.currentFrame>_root.slides._totalframes-1) _root.currentFrame=0;

      Its basically some "sliders" that reveal a new picture but I want it to quit once it has cycled through all the pics.

      Thanks