新建一个空层,将下列代码加入影片的倒数第二帧上即可实现影片先正放到头后自动倒放.切记放在倒数第二帧上其它无需设置.
onEnterFrame = function () {
if (this._currentframe<=this._totalframes) {
gotoAndPlay(newpos);
newpos=_currentframe-1;
updateAfterEvent();
}
if(this._currentframe<2){
delete onEnterFrame;
gotoandplay(1);
}
}
转载于:https://www.cnblogs.com/goto2008/archive/2005/06/28/182497.html