Artboycat
1-25-06, 11:29 PM
Hi, I'm working alot more in flash now and I've designed most of my site as well as others with Flash....I finally figured out how to make a decent preloader that works but their are still somethings I am unaware of...The loader i created based on an online tutorial loads the page that needs to but what i realized is that when the flash page is active on a site it only loads the first frame and then the page stops to load the rest of the frames after the preloader has loaded the first frame....this is the code I am using
myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded/myTotal;
myBar._width = myPercent*150;
myText = Math.round(myPercent*100)+"%";
if (myLoaded == myTotal) {
gotoAndStop(3);
} else {
gotoAndPlay(1);
}
ideally I would like to make sure that the preloader reads all the frames before loading the page or site...Can anybody help me with this or maybe give me guidelines on how to set up a preloader in a flash movie with multiple scenes, a website with various movies that load within the main page of the site, or just a whole site where the various pages are structured within seperate scenes in the movie....if anybody understands and can help me with this I would greatly appreciate it!!
myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded/myTotal;
myBar._width = myPercent*150;
myText = Math.round(myPercent*100)+"%";
if (myLoaded == myTotal) {
gotoAndStop(3);
} else {
gotoAndPlay(1);
}
ideally I would like to make sure that the preloader reads all the frames before loading the page or site...Can anybody help me with this or maybe give me guidelines on how to set up a preloader in a flash movie with multiple scenes, a website with various movies that load within the main page of the site, or just a whole site where the various pages are structured within seperate scenes in the movie....if anybody understands and can help me with this I would greatly appreciate it!!