Hi everyone

I've read tutorials online for creating a loading bar with loading text. What i'm trying to achieve is that while the flash clip is loading, a movie clip just above the bar will play. But not just play on it's own timeline, more like play in proportion to how much of the clip is loaded.

For example, imagine a pot. As the flash clip loads 25%, a plant will grow till 25% of its height. Once the clip fully loads to 100%, the plant would have fully grown with a flower on top.

So what's the code to control a movie clip in proportion to how much percent loaded?