flash做按钮代码测试时不管用为什么?

[复制链接]
查看11 | 回复1 | 2008-11-6 21:01:26 | 显示全部楼层 |阅读模式
tz_btn.onRelease=function(){
_root.stop();
}
kt_btn.onRelease=function(){
_root.gotoAndPlay("(_currentframe - 22)");
}
kj_btn.onRelease=function(){
_root.gotoAndPlay("(_currentframe + 22)");
}
zt_btn.onRelease=function(){
_root.stop();
bf_btn.onRelease=function(){
_root.play();
}
就是这个代码,提示最后一行有语法错,还有测试时按按钮没什么用?请高手指点

回复

使用道具 举报

千问 | 2008-11-6 21:01:26 | 显示全部楼层
_root.gotoAndPlay("(_currentframe - 22)"); 改成:_root.gotoAndPlay(_currentframe - 22); 并且:_root.gotoAndPlay("(_currentframe + 22)"); 改成:_root.gotoAndPlay(currentframe + 22);...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行