I have a short simple animation running at 20 FPS.
my MC in my main timeline is only running at 3 FPS. My main clip has audio— I really don’t like thinking about working with almost 7 times the frames. My animation HAS to run at 20 FPS to make it believable so chopping that down is not an option either.
I have been reading some forum suggestions on this issue & by what I have read it looks there is a script or two out there that just might help me.
Which way do I choose & will it do what I think I am uderstanding, here are both
Script !:
setFPS = function(instance) {
instance.nextFrame(); };
setInterval(setFPS, 1000/25, this);
Script 2:
if (!init) {
init = true;
nFrame = theFPS = 24; // fps of the loader
this.stop();
this.onEnterFrame = function() {
// not yet return;
if (–nFrame) return;
if (this._currentFrame < this._totalFrames) {
this.nextFrame();
} else {
this.gotoAndStop(1); // to loop
// if you don’t want to loop, you need to kill the onEnterFrame instead
// delete this.onEnterFrame
}
// reset frame counter
nFrame = theFPS;
} // end onEnterFrame
My questions:
Will these work for me?
Will they work with Flash 5 player?
I have limited knowledge of action script so I am trying to learn a little at a time as needed for what I am doing.
If either or is workable for what I have described could someone please enlighten me as to an explanation of the script. Understanding what it is doing will make it easier to broaden my knowledge of Action Script.
Thanks for your help
Janet