10 frame preloader help

Just a quick question.

I have a 10 frame movie clip as my preloader in which each frame represents 10% of the loaded movie progress. How do I script this thing so that it will display frame 1 on 10% of total bytes loaded and frame 10 at 100% of total bytes loaded?

Any ideas?