這個視情況而定,主要是路徑的問題如令按鈕實例名為stop_btn,play_btn,某影片剪輯實例名為MC則當腳本為AS2.0則有若在按鈕上書寫代碼即有//在開始按鈕上on(release){this.MC.play();}//在停止按鈕上on(release){this.MC.stop();}//在幀上stop_btn.onRelease=function(){MC.play();}play_btn.onRelease=function(){MC.stop();}當腳本為AS3.0則只能在幀上寫play_btn.addEventListener(MouseEvent.CLICK,playMC);stop_btn.addEventListener(MouseEvent.CLICK,stopMC);functionplayMC(e:MouseEvent):void{MC.play();}functionstopMC(e:MouseEvent):void{MC.stop();}這個只限按鈕動畫處與主場景MainLine中,即一般的主場景
網站導航
- zblogPHP模板zbpkf
- zblog免費模板zblogfree
- zblog模板學習zblogxuexi
- zblogPHP仿站zbpfang