Framerate User Controls

Hello there! Here is the issue : I have to make a flash movie that would allow the user to control the framerate of the movie.
Unfortunately I’m not that good with flash and I don’t know how that could be done …I thought about something like"on(press){
movieclip.increaseframerate(*2);

}" .Could anybody give me a hint as to what actionscript command I should use or if you guys know any tutorials on the web that explain this, I would be extremely gratefull

Thank you!

pretty sure that that is impossible :frowning:

Thanks

it is, you can use intervals instead… may not be as good however. but like


var frameRate:Number = 30;
runningGame = setInterval(runGame, frameRate);
function runGame(){
	trace("blah");
             /*
             Insert game actions...
             */
}

May not be as effiecient, as I said, but its ok.
But whenever you leave the frame, or want the game to restart, you need to use:


clearInterval(runningGame);