控制影片的倒放。。
[ 2004-06-16 14:26:05 | 发布: N神 ]
新建一个空层,将下列代码加入影片的倒数第二帧上即可实现影片先正放到头后自动倒放.切记放在倒数第二帧上其它无需设置.
onEnterFrame = function () {
if (this._currentframe<=this._totalframes) {
gotoAndPlay(newpos);
newpos=_currentframe-1;
updateAfterEvent();
}
if(this._currentframe<2){
delete onEnterFrame;
gotoandplay(1);
}
}
updateAfterEvent();
刷新的作用.使播放更流畅
onEnterFrame = function () {
if (this._currentframe<=this._totalframes) {
gotoAndPlay(newpos);
newpos=_currentframe-1;
updateAfterEvent();
}
if(this._currentframe<2){
delete onEnterFrame;
gotoandplay(1);
}
}
updateAfterEvent();
刷新的作用.使播放更流畅
浏览模式: 阅读全文 |
评论: 2 |
引用: 24 | Toggle Order | 阅读: 3604
1
[ 2004-06-19 22:13:27 ]
FK的mp3不是有的吗?
[ 2004-06-20 18:22:57 ]
1
