看板 Flash 關於我們 聯絡資訊
※ 引述《titusz (嘿嘿~)》之銘言: : 如題~~ : 我有一段MOVIE clip~~右邊有上和下兩個按鈕~~ : 滑鼠移過去按鈕後左邊的動畫自動跑動~~ : 但是不知道在哪邊設頂~~~ : 也就是說文字到底或到頂可以停住~~~ : 怎麼寫才正確~~~ : 有測試檔案~~~http://www.lotusdream.com.tw/test.rar : 請各位高手能幫忙解決~~~(十萬火急~~謝謝) stop(); var moveflag = 0; 0>=show._y>=-700; //這行應該沒用,刪掉它吧 this.onEnterFrame = function() { if (moveflag == 1) { if (show._y<0) { show._y += 15; } } if (moveflag == 2) { if (show._y>-700) { show._y -= 15; } } }; 就把紅色的那行刪掉,再加上黃色的那幾行應該就行了 供你參考 -- http://www.eddie.com.tw/blog/ http://www.eddie.com.tw/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.135.172.127
icedesign:大推~ 03/18 10:54