Skip frames if jsMovie is unable to keep up with the desired framerate

We're using jsMovie to create several sequences on a page that will run on desktop PCs and tablets (specifically we're testing on the iPad). On the iPad 1 and iPad 2 we've noticed that the movie plays choppily because the device is unable to play frames at the requested interval.

I hooked into the code in the play_movie_event method where you're calculating the "real FPS". If the realFPS is less than 75% of the desired FPS, I added a bit of code to calculate the actual play rate and skip frames if necessary (by calling gotoFrame() multiple times until the actualPlayRate is >= 1).

I tested this locally with IE9 and Chrome, hopefully it's something you can use.