0 Replies Latest reply on Sep 10, 2007 10:26 AM by tmkswk

    New button doesn't stop previous button videoplayback.

    tmkswk
      Hello.

      I'm very new to ActionScript, just trying to put a simple portfolio site of mine and don't have enough time to dig flash properly. My site contains buttons, which after click go to given frame in the time line and display videoplayer. Autoplay is false, but when you hit play on the player and the video rolls with audio and then when you don't press stop just another button (all buttons are visible all the time on the stage) it gives another frame and another video player with different content, but the previous audio is still playing! I don't know how to fix it fast and in least complicated way.

      ActionScript for button:

      this.buttonname_btn.addEventListener(MouseEvent.CLICK, clickListener0);
      function clickListener0(event:MouseEvent):void {
      gotoAndPlay("framename");
      }

      And at given frame is a keyframe with videoplayer, and frame after it is actionscript saying gotoAndPlay("previousframe"), so multiple button click doesn't goes to next keyframe with another player.

      In short: i need to stop all ongoing playback after button click, but still be able to press play on the player and get content.

      Thank you in advance for your help.