Flash Button Q
Flash Button Q
Out of context: Reply #2
- Started
- Last post
- 2 Responses
- unfittoprint0
a fast forward is the result of an interval/onEnterFrame loop that tells the player to advance a a certain number of frames.
So://n is the number of skipped frames
//forward function
forward = function(n){
if(this._currentframe + n < this._totalframes){
this.gotoAndStop (this._currentframe + n);
} else {
this.gotoAndStop( this._totalframes);
};
}forwardbutton.onPress = function(){
MC.onEnterFrame = forward;
}forwardbutton.onRelease = function(){
delete MC.onEnterFrame;
}