I’ve been updating my work website with extra pages etc.
I’m pretty new to flash and have been having real trouble with preloader script which I can imagine is probably pretty simpl, when you know how.
The preloader is the name of the company written on two layers (the top is lighter and bottom is darker) with a white block in the middle that slides to right as the percentage of the loading reaches 100%. I have tried simply copining other pages of the site that have a working preloader, but as the page I’m working on needs smaller text- whe I try to make the scrolling white block smaller it just doesn’t work properly.
bytes_loaded = Math.round(_root.main.getBytesLoaded());
bytes_total = Math.round(_root.main.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.main.loadBar._x = getPercent131;
_root.main.loadText = Math.round(getPercent100)+"%";
if (bytes_loaded == bytes_total) {
gotoAndStop(3);
}
131 is the width of the loadbar (white block) which is the distance I want the block to move to the right, and create the illusion of the lighter text filling up with darker text. With the adjustments I have made the dark text seems to fill with lighter text or just not at all.
sorry for the incrdibly long winded description. any help would be great.
cheers