Timeline preloader

Howdy!

I am trying to do a preloader based on timeline animation.
(AS3.0)
say there is 100 frames…how can it play so it matches with bytes loaded?

thanks