all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

HELP! with advanced preloader


HELP! with advanced preloader ace01
2/22/2004 9:39:49 PM
flash actionscript:
I have a one scene that is the preloader and another scene that is the site.
My preloader works to load all the frames in the site but I want the preloader
to only load some of the frames in the site. So someone with dialup doesn't
have to wait until all the frames of the site are loaded before they can view
the home page.

Can someone help me!

var loadAmount = _totalframes;
if (_framesloaded == loadAmount) {
gotoAndPlay("main", "home");
} else {
loaded = Math.round(getBytesLoaded()/1024);
total = Math.round(getBytesTotal()/1024);
percent = Math.round((loaded/total)*100);
bytesLoadedOutput = loaded;
bytesTotalOutput = total;
percentOutput = percent+"%";
loadBar._width = loadBarHousing._width*(percent/100);
gotoAndPlay("loading");
}
Re: HELP! with advanced preloader dk_says_hey
2/22/2004 9:45:15 PM
AddThis Social Bookmark Button