Speed up FPS in flash
- Started
- Last post
- 3 Responses
- Bullitt
Anyone know how I can speed up the fps on a flash movie with action script? Want it to play faster on a movie clip at a certain point on the timeline.
anyone?
- ozhanlion0
if you have set you animation in author time, as on the timeline, nope there is no way besides cutting up the frames.. sorry.
- airey0
there may be a way. check some of the AS forumns for expert advice:
www.were-here.com
www.actionscript.orgetc.
there's bound to be an AS freak that worked out a method.
you could script the movement of the particular items and make them free of the timeline completely which would allow you to choose and speed you want for those elements?
im no as expert (or even itermediate user) so i've really no idea.
- caseyc0
Something like this will work if your mc is frame based...
MovieClip.prototype.setFPS = function(fps)
{
this.stop();
clearInterval(this._fpsint);
this._fpsint = setInterval(this,"doFPS",1000/fp...
}
MovieClip.prototype.doFPS = function()
{
var curframe = this._currentframe;
var goframe = ( curframe == this._totalframes) ? 1 : curframe + 1;
this.gotoAndStop(goframe);
updateAfterEvent();
}
MovieClip.prototype.clearFPS = function()
{
clearInterval(this._fpsint);
}my_mc.setFPS(60);