I am making a website and I have a problem. The main screen loads external swf files into a movie clip in the middle of the stage. Each movie clip has a preloader at the beginning. However, the preloader usually doesnt appear until it is as 90 percent or so. It appears for a second after a long period where the screen is blank and then disappears. I would like it to pop up right away so that people know something is happening. Otherwise they click and the screen disappears and doesnt come back for a while. The website is here
Only the home button and the overview button work right now. The overview button is the one I am concernec about because home loads automatically with the page. You wont see the preloader unless you clear your temporary files. Any help greatly appreciated!
The swf’s are graphic intensive but not in the first frame. There are no embedded fonts and the entire site is made in flash. If you need the fla file, I can send it to you. As far as the action script, it is pretty straightforward. The multiple levels make it a little more confusing.
bytes_loaded = Math.round(_root.mc.getBytesLoaded());
bytes_total = Math.round(_root.mc.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.mc.loadBar._width = getPercent100;
_root.mc.loadText = Math.round(getPercent100)+"%";
_root.mc.total = bytes_total+" Bytes Total";
_root.mc.loaded = bytes_loaded+" Bytes Loaded";
if (bytes_loaded == bytes_total) {
_root.mc.gotoAndPlay(3);
}
This is the first frame. The second frame just goes back to the first. mc is the name of the movie clip I load the swf into on the main page.
The scrollpane export some stuff in the first frame. Anything exported in first frame is preloaded before anything else in the movie. So it may causea load delay before the movie starts.
Maybe drag any symbol that is beeing exported to first frame onto stage (any frame besides the first frame). And uncheck the export to first frame option.
That way i think flash will preload them normally.
ie: place those symbols in 2nd frame. Once the movie is fully loaded, tell flash to move to 3rd frame.
Ok excellent. I changed all my linkage options so things dont export in the first frame any more and it works much better. It still takes a second to appear but it shows up at about 50 percent instead of 90. Thanks