ผมก็ทำแล้วไงครับ
คือลองเปลี่ยน As เป็น
m = mo._currentframe;
tt = 0;
playbu.onRollOver = function() {
tt = 1;
if (m>=180) {
mo.play();
} else if (m>=140) {
mo.gotoAndPlay(181);
}else if (m>=120) {
mo.gotoAndPlay((200-m)+120);
} else if (m<120) {
mo.gotoAndStop(1);
}
}
playbu.onRollOut = function() {
tt = 0;
if (m>=180) {
mo.play();
} else if (m<120) {
mo.gotoAndPlay(2;
}
}
แล้วใส่ AS ใน MC frame 1 เป็น
if (tt==1) {
this.stop();
} else {
this.gotoAndPlay(3);
}
แต่มันยังไม่ได้น่ะครับ
m = mo._currentframe;
tt = 0;playbu.onRollOver = function() {
tt = 1; if (m>=180) {
mo.play();
} else if (m>=140) {
mo.gotoAndPlay(181);
}else if (m>=120) {
mo.gotoAndPlay((200-m)+120);
} else if (m<120) {
mo.gotoAndStop(1);
}
}
playbu.onRollOut = function() {
tt = 0; if (m>=180) {
mo.play();
} else if (m<120) {
mo.gotoAndPlay(3);
}
}
แล้วใส่ AS ใน MC frame 1 เป็น
if
(tt==1) {
this.stop();
} else {
this.gotoAndPlay(2);
}
แล้วทำไมมันยังไม่ได้ล่ะครับ