Throttle your program to a fixed framerate using a timer. That way you give CPU time you don't need back to the operating system. The human eye can't do much better than 25 fps anyways. Setting a fixed framerate of 50/60 fps should be more than enough for a Flash game.