I want to create a preloader with a loadbar that shrinks from
left to right. My loadbar is a white box. I want it to uncover the
layer behind it effectively revealing more of an image as the swf
loads. My code (below) works if I try to "grow" the loadbar. I was
trying to use a minus sign to reverse the math, but I couldn't
figure out where to put it. In case it matters, I have my movie set
up with the anchor point on the right side (since that's the point
I want to stay fixed).
Thanks in advance.
Action script to make loadbar grow (How do I make it shrink,
The easier way to uncover is to just use the preloader code
as normal - so
it goes 0-100 and set the _xscale of a bar clip that is a
mask layer for
your image. If you really want to see the bar shrink from
left to right then
make your bar have it's registration point at the right edge.
Then you can
again use the normal code that goes from 0-100 and just set
the bar's xscale
to 100 - the percent.