Preloader Speed

I was trying to find a better solution for a preloader I have.

What I’ve got is a movieclip animation that plays while a preloader script loads an SWF. Is there a way to control the speed at which the movieclip plays so that it always ends when the SWF reaches 100%?

I guess I could make the animation 100 stop frames and have flash advance to the frame based on the perc loaded, but that might not be a good idea.

Any suggestions or methods I could use to start?

Thank you.