5 Replies Latest reply on Jul 9, 2009 5:14 PM by kglad

    MyMovie.stop(); makes timeline buttons not work

    danny.abel

      I know there is a simple solution to this problem, but I can't figure it out.  It's killing me!

       

      I have set up a simple website along multiple frames on a timeline.  I am using Flash CS3 with AS3. 

       

      I use eventListeners to jump between frames.  One of my frames displays a video.  I imported the video as a component using the 'import video' function.  It plays fine.  When navigating away from the video I use the myVideo.stop(); command in AS3 to stop the video from continuing to play.

       

      For some reason, when I do this the buttons on my main page stop working.  Any ideas?

       

      The code I use on the movie frame is:

       

      cr_back_btn.addEventListener(MouseEvent.CLICK, onCRBackClick);

       

      function onCRBackClick(e:MouseEvent):void

       

      {

      costa_rica_mov.stop();

      gotoAndStop("costa_rica");

       

      }

       

      Please let me know if you need any other information to get to the bottom of this.  Your help is greatly greatly appreciated. Cheers!