flash暂停按钮代码

flash暂停按钮代码
flash暂停按钮代码

flash暂停按钮代码

2010-05-27 19:34 提问者:匿名|浏览次数:2692次

制作一个flash按钮实现这样的功能。点击一下flash整体暂停,再点击一下flash开始播放。这样改在按钮上添加什么代码呢?

我来帮他解答

满意回答

2010-05-28 12:48

on (press)

{

if (x==1)

{

stop(); x=0;

}

else

{

gotoAndPlay(_currentframe+1);

x=1;

}

}

或on (release) {

var k:Boolean;

if (k) {

play();

} else {

stop();

}

k = !k;

}

相关主题
相关文档
最新文档