|
查看: 1213|回复: 1
|
帮我一个忙。。。(急)
[复制链接]
|
|
|
我要在我的VIDEO里加个Forward 或 Rewind的BUTTON.我能给到下个FRAME,但是我要它每按一下能够跳10个FRAME,该如何呢???是不是要加个GLOBAL 的 VARIABLE的???
on (press) {
prevFrame(0) ;
} ----->这个是跳一个FRAME的AC. |
|
|
|
|
|
|
|
|
|
|
发表于 6-4-2006 03:26 PM
|
显示全部楼层
MovieClip.prototype.Foward = function(speed) {
this.onEnterFrame = function() {
if((this._currentframe+speed) < this._totalframes) {
this.gotoAndStop(this._currentframe+speed);
} else {
this.gotoAndStop(this._totalframes);
delete this.onEnterFrame;
}
}
}
MovieClip.prototype.Rewind = function(speed) {
this.onEnterFrame = function() {
if((this._currentframe-speed) > 1) {
this.gotoAndStop(this._currentframe-speed);
} else {
this.gotoAndPlay(1);
delete this.onEnterFrame;
}
}
}
fowardBtn.onRelease = function() {
this._parent.Foward(10);
}
rewindBtn.onRelease = function() {
this._parent.Rewind(10);
}
http://xenz.yiima.com.tw/sample/controller.swf
[ 本帖最后由 super-tomato 于 6-4-2006 03:40 PM 编辑 ] |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|