Complex Preloader

Hi -
Hope you all can help me:

I’d like this to work in Flash 5 - but Flash MX (6) would be ok too.

I’m creating a bar preloader that expands out (works fine). On either end of the preloader I have a bracket ( ] ) graphic that I want to move as the bar moves. I tried to set the _x position to move but it doesn’t alingn with the preloader bar, it aligns to the left edge of my stage (??).

Also as the preloader bar expands I want to have the preloader percentage text and loading text reveal (probably a mask ??). The animation would look something like this (but centered):

[ – ]

ding 55%
[ ---------------- ]

Loading 99%
[ --------------------------- ]

>>> My loader bar actionscript looks like this: <<<

this._xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);

>>> And what I have for the brackets looks like this: <<<

_root.rightbracket._x = ((_root.getBytesLoaded()/_root.getBytesTotal())*100);

I have no clue how to do the mask of the loading text and percentage (lol).

If you have any FLA’s I could look at that would be a big help. Thanks in advance for any help you can give.

try something like this:
put this script on your loadbar:
this._xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); //the loadbar
_parent.rightbracket._x = this._x+(this._width/2)+5; //5 is the space between bar and bracket
_parent.leftbracket._x = this._x-(this._width/2)-5;
that might take care of the brackets at least :slight_smile:

That worked great. Took me a sec to get it as I’m a bit daft today. I’m working on the text reveal (mask) now – I’ll post to this forum the results as I’m sure I’m not the only one interested in this type of loader (I’ve seen it on Nike.com etc.