1 Reply Latest reply on Jul 31, 2010 7:15 AM by kglad

    Movie clip ignoring stop() and looping continously




      I have a movie clip, which is loading a portfolio. A movieclip holding the images drops down into the screen and then when the user clicks the return button within this movie clip, it dispatches an "end" event. In the main timeline, I have put in a gotoAndPlay(frameno); in response to the "end" event.


      From this "frameno" the movie plays on and is supposed to come to a stop at the end of the timeline. The problem is that it is ignoring the last stop and jumping back to the first frame of the movie. Also, the stop I placed to let the user browse the images, and listen for the end event, is being ignored and the timeline is proceeding as normal and looping continously.


      I don't understand what is wrong. This is the basic structure of the file.


      Frame 1 -

      Stage.align = "TL";
      Stage.scaleMode = "exactFit";


      var intrvl4 = setInterval(clrintrvl4, 1500);


      function clrintrvl4(){


      Frame 7 -




      var intrvl2 = setInterval(clrintrvl2, 1500);


      function clrintrvl2(){
          trace("intvl2 called");


      Now the clip has come onto the screen completely. So the code is:


      folioholdermc.addEventListener("back", function() {gotoAndPlay("done");});


      At Frame done:




      var intrvl9 = setInterval(clrintrvl9, 1200);


      function clrintrvl9(){
          trace("intvl9 called");
      }                    // the clip with the images starts going back up


      At the final frame


      soapmc.gotoAndPlay(40);          //this is for a clip on the stage



      Why is all this being ignored????? The movie is just looping continously. Is there an alternative for the setInterval?? Is that what is causing this problem???