flash动画 按钮 if语句

[复制链接]
查看11 | 回复4 | 2010-5-14 22:46:53 | 显示全部楼层 |阅读模式
有一个按钮a1,点击按钮时用if语句判断,如果当前帧在第20帧,那么当前帧不动人在第20帧,否则跳转到第5帧,下面()内应该是什么?
on (release) {
if (
) {
gotoAndPlay(20);
} else {
gotoAndPlay(5);
}
}

回复

使用道具 举报

千问 | 2010-5-14 22:46:53 | 显示全部楼层
on (release) { if(_currentframe==20) {stop();//这里应该设为stop(),因为既然已经在20帧了,何必还跳转到20帧 } else {gotoAndPlay(5); }}
回复

使用道具 举报

千问 | 2010-5-14 22:46:53 | 显示全部楼层
on (release) { if (_currentframe!=20) {
gotoAndPlay(5); }}
回复

使用道具 举报

千问 | 2010-5-14 22:46:53 | 显示全部楼层
_currentframe==20
回复

使用道具 举报

千问 | 2010-5-14 22:46:53 | 显示全部楼层
_root._currentframe==20
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行