请大家帮忙看一看这个按纽为什么要点击两次才能跳到指定帧
代码如下:
on (release) {
xy.onRelease = function() {
if (xuyuan.length>12) {
gotoAndPlay(2);
} else {
gotoAndPlay(3);
}
};
stopAllSounds();
}
还有这个:
on (release) {
stopAllSounds();
cl.onRelease = function() {
gotoAndPlay(1);
xuyuan1="";
};
}
谢谢!!!!!!
你使用了两次onRelease 当然会按两次.
在FLASH MX中其实
on(release){
.....
}
和
cl.onRelease=function(){
.......
}
作用是一样的.OK!
up
这两段代码是同一个鼠标事件吗?那为什么不放到一起,而放在两个on(release)中呢?