停止另一帧的flvplayback

时间:2018-06-08 02:13:39

标签: actionscript-3 flash button flvplayback

所以我有3个按钮,我为每个按钮使用了gotoAndStop()命令 当我在看到视频后点击另一个按钮时,视频仍然在后台播放。我怎么能阻止它?我不能使用SoundMixer.stopAll();因为我使用音乐背景。 对不起,我的英文不好,我的新as3所以请帮助我,谢谢

btngallery.addEventListener(MouseEvent.CLICK, fl_ClickToGall2);

function fl_ClickToGall2(event:MouseEvent):void 

{
if(currentFrame != 12){
    gotoAndStop(12);
    btngallery.gotoAndStop(2);  // its just button animation
    btninfo.gotoAndStop(1);
}else{
    btngallery.gotoAndStop(1);
    gotoAndStop(11);
    stop();
  }
}

btninfo.addEventListener(MouseEvent.CLICK, info8);

function info8(event:MouseEvent):void
{
 if(currentFrame != 14){
    gotoAndStop(14);
    btninfo.gotoAndStop(2);
    btngallery.gotoAndStop(1);
}else{
    btninfo.gotoAndStop(1);
    gotoAndStop(11);
    stop();
  }
}
btnvideo.addEventListener(MouseEvent.CLICK, vidiboih);

function vidiboih(event:MouseEvent):void
{
if(currentFrame != 13){
    gotoAndStop(13);
    btnvideo.gotoAndStop(2);
    btngallery.gotoAndStop(1);
    btninfo.gotoAndStop(1);
}else{
    btnvideo.gotoAndStop(1);
    gotoAndStop(11);
    stop();
  }
}
第12帧:画廊, 第13帧:视频, 第14帧:信息

0 个答案:

没有答案
相关问题