goto2008

GOTO2008

博客园 首页 新随笔 联系 订阅 管理
新建一个空层,将下列代码加入影片的倒数第二帧上即可实现影片先正放到头后自动倒放.切记放在倒数第二帧上其它无需设置.
onEnterFrame = function () {
 if (this._currentframe<=this._totalframes) {
  gotoAndPlay(newpos);
  newpos=_currentframe-1;
  updateAfterEvent();
  
 }
 if(this._currentframe<2){
  delete onEnterFrame;
  gotoandplay(1);
 }
}
posted on 2005-06-28 11:27  GOTO2008  阅读(2669)  评论(0编辑  收藏  举报