I have a preloader in my game…as of now i’m just using _xscale for the loading bar, and what it does is go from the middle outwards. Can I somehow make it so that the bar will expand from left to right, using xscale(preferably) or some other variable. The width of it has to be a percentage, not a set number, because with xscale, I tell it to getBytesLoaded()/getBytesTotal()*100…which makes a percentage.
you have to edit the MC that the bar is in and move it so the crosshairs of the stage are on the far left of the bar…
can you be a little bit clearer? I tried moving the bar, but it makes some weird animation…and i’m confused
I also use _width= instead.
http://www.kirupa.com/developer/mx/rpoint.htm
like that but move it to the left instead…
Make sure that inside your loadbar mc: the ‘bar’ mc is positioned x=0 and y=0.
(I’m just guessing here… i suppose the preloader is a movieclip and inside there is another mc symbol that holds the bar itself and that one needs to be scaled)
anyway: i think it’s a good habit to systematically postion everything you touch manually via the properties inspector. and allways start off with positioning subelements in MC to (0,0).
This sounds confusing I know.