ftp://nas.takming.edu.tw/songshen/ftp/FlashAS3/A/
步驟
圖層設定與實作
先打開ini檔。
在蝴蝶的圖層的第一個影格按F6複製一份
新增一個圖層紀錄動作(action)
點選蝴蝶圖層的第一個影格→選擇蝴蝶→影片片段改成圖像→循環改成單一影格
在action的最後一個影格,增加一個關鍵影格→F9→stop()
如下圖
程式碼
場景程式
a.addEventListener(MouseEvent.ROLL_OVER, myplay);
function myplay(e:MouseEvent):void
{
this.a .this.play();
}
丟到影片片段裡面
stop()
this.addEventListener(MouseEvent.ROLL_OVER, myplay);
function myplay(e:MouseEvent):void
{
this.play();
}
沒有留言:
張貼留言