1.新建AS代碼層
2.第一幀插入空白關(guān)鍵幀
3.第一幀空白關(guān)鍵幀插入代碼:
function onPageOffView():void{
this.stop();
}
function onPageViewed():void{
gotoAndPlay(1);
}
4.最后一幀插入停止代碼:
stop();
5.元件動畫新建AS代碼層:
6.元件動畫最后一幀插入關(guān)鍵幀并加入停止代碼:
stop();
7.元件動畫,時間軸設(shè)置延遲播放。
8.導(dǎo)出SWF影片。
!評論內(nèi)容需包含中文