Preloader

Hi

I’d like to create a preloader to my website that looks like this when it starts (although these are just quick mock-ups):

<img src = “http://www.lazybrown.co.uk/v7.2/img/preload01.gif”>

and when it is half way through (for instance), it looks like this:

<img src = “http://www.lazybrown.co.uk/v7.2/img/preload02.gif”>

Could anyone point me in the direction of a tutorial or perhaps give me a few pointers?

Thanks

Sorry, I’ve just realised I’ve posted this in the wrong forum. I’ll repost in the Flash section.

Apologies…

Eeh, i didnt find your post in any of the flash forums, so i couldnt see if you had got any help. Thus im posting it here, i’ve solved your problem. Kreate a layer with just the white part inside (that which is going to be filled green) and then, below that layer you create a layermask which is just a green bar 2pts in width or something. Make it a Movie Clip and name its instance bar. Then:

_root.bar._width = int(_root.getBytesLoaded()/(_root.getBytesTotal()/100*4.077));

4.077 is because the bar - when it spans all the text (100%) - has the width 407.7