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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preload progressive images (instead of all at once)

Status
Not open for further replies.

echostorm

Vendor
Apr 10, 2005
28
AU
Hey all, I am putting a flash presentation on the front page of the site which is a series of 15 photos. I have made a preloader for these images however it preloads all 15 rather then just one at a time. Does anyone know how I can do this?
Here is the code for the preloader...
Frame 1
Code:
var amountLoaded:Number = _root.getBytesLoaded()/_root.getBytesTotal()
preloader._width = amountLoaded *  200;
loadText.text = Math.round(amountLoaded * 100) + "%";
Frame 2
Code:
if(_root.getBytesLoaded() == _root.getBytesTotal()) {
	gotoAndPlay(3);
}

else {
	gotoAndPlay(1);
}

All help is appreciated...
Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top