i have a swf lets call it main.swf it has navigation and buttons etc. when a button is pressed it animates to the end of the main.swf then hits a preloader… the preloader in main.swf will load the next swf that corresponds to the button pressed… gallery.swf, team.swf etc.
what i was wondering is… how can i change that code so it grabs the bytes loaded and bytes total from a seperate swf file on the server?
im not sure if this is how the websites i see with preloaders between scenes does it but any help you guys can give to help me work it out would be awes.
ive taken my preloader code from another actionscript site…
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
if (percent == undefined) percent = 0;
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndStop(2);
}
}