[問題] 關於按鈕判斷迴圈的問題
AS內碼:
_root.btn.onRelease = function() {
if (_root._currentframe == 1) {
_root.gotoAndStop("step2");
} else if (_root._currentframe == 2) {
_root.gotoAndStop("step3");
} else if (_root._currentframe == 3) {
_root.gotoAndStop("step4");
} else if (_root._currentframe == 4) {
_root.gotoAndStop("step1");
gotoAndStop("場景 2", 1);
}
};
我想把"if (_root._currentframe == 1) {"
改成"if (_root._currentframe == "step1") {"
就是想在判斷迴圈裡面的影格位置改成影格標籤
但是就是不行~
找了很久都沒找到
哪位大大幫我一下好嗎?
非常謝謝您
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.114.155.83
Flash 近期熱門文章
PTT數位生活區 即時熱門文章