4 Replies Latest reply on Jan 3, 2008 6:52 AM by kglad

    Stop Action Problem

    zaderak
      I'm building a site in CS3 with utilizing AS2.
      The timeline wont stop.
      I have buttons that send the user to different areas of the main timeline via labels
      stop(); action is in keyframe at the end of timeline sequence and are not being recognized in the swf.
      this is a recent problem.(only in this one file.)
      gotoAndPlay(); loops work fine so why aren't my stop(); working?
      any ideas?
        • 1. Re: Stop Action Problem
          kglad Adobe Community Professional & MVP
          you have a typo or some other code that's executing after your stop() and causing the timeline to advance. or your timeline may be stopped and you don't recognize that.
          • 2. Re: Stop Action Problem
            zaderak Level 1
            I've checked for typos. Is it possible that I've come across some kind of bug?
            i put three stop actions in a row (stop(); on three keyframes in a row and non of them stopped the timeline. how is this possible) Could this code have something to do with it.

            stop();
            _root.onEnterFrame = function(){
            if (_framesloaded >= 65){
            nextFrame();
            }
            }

            on frame 17 of the main timeline.
            the stop in this code it recognizes. all stops afterwards it ignores.

            I then took this code out. but it still will not stop.
            • 3. Re: Stop Action Problem
              aniebel Level 2
              _root.onEnterFrame = function() {
              if (_framesloaded >= 65) {
              nextFrame();
              }
              delete onEnterFrame;
              };
              • 4. Re: Stop Action Problem
                kglad Adobe Community Professional & MVP
                that code will cause the timeline (that contains the code) to play past any stop once it reaches frame 65.

                amy's editing of the code will prevent that, but it also will, most likely, prevent that code from doing anything useful.