ok i looked over the code and stipped it down to essentials
place in frame 1 of main timeline
pathToClip.ClipName.onEnterFrame = function(){
onenterframe()
}
setFPS = function(frameRate){
onEnterFrame = wasteTime;
this.frameTime = 1000/Math.max(5,Math.min(120,frameRate));
this.t0=getTimer();
this.t1=getTimer();
}
resetFPS = function(){
onEnterFrame = null;
// clean up unneeded variables
delete(t0);
delete(t1);
delete(frameTime);
}
wasteTime = function(){
do{
this.t1=getTimer();
}while(t1<t0+frameTime);
this.t0 = t1;
}
}
to alter the frame rate in your clip add on each keyframe where you want the speed to alter
_root.setFPS(5); //slow
_root.setFPS(20) //faster
the code still has lots of room for improvment and i hope i havent cut away anything essential.
_______________________________________
You know you're old if you can remember when bacon, eggs and sunshine were good for you