This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > February 2006 > Preloader placement





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Preloader placement
ekora

2006-02-24, 10:16 am

I have a host swf file that uses loadMovie to call in about 8 external swf
files on each seciton of my website. I wanted to show a preloader while each
swf file is loaded, but I don't know whether to put the preloader in each of
the external swf files or put one in each section of the host swf file.

Thanks for your input,
Brian

ekora

2006-02-24, 10:16 am

I got it to work within each external swf, aside from one in particular. The
one that it's not working on is one that has three semi-hefty movie clips. Is
there a way to add the percentages of each of those three movie clips, divide
by three, and output the average of all of them loading?

This is what I used for the preloader script:

onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndStop(3);
}
}

Thanks in advance,
Brian



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews