Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

preloader bar flashes and goes away

Status
Not open for further replies.

CherieHere

Programmer
Dec 20, 2002
12
US
I have a preloader.swf which loads a movie wedding.swf

I am attempting to show percent loaded.

When the web page is launched, the preloader bar flashes for a brief second and then disappears. The status bar says done, but the imbedded movie is still loading.

Once the movie loads, it becomes visible.

So would someone take a look at my preloader code and see if you can determine why the status bar does not stay visible?

Thanks, Cherie



Thanks
 
i havent tried it but this looks better to me

if (_root.getBytesTotal() > 0) {
var loads = _root.getBytesLoaded();
var total = _root.getBytesTotal();
var percent = parseInt((loads/total)*100);

if (loads == total) {
_root.play();
gotoAndStop(5);
}
}
 
Is this problem solved or not? Regards,

oldman3.gif
 
This particular problem has been solved.

Thanks, Cherie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top