This following Script is use for Preloading flash page before use.
Action Script:
--------------------------------------------------------------
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
ac = ""+percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
Create a movie clip in the first frame and make animation for how the pre loader has to be. Then Create an Empty Dynamic text content inside the movie clip and name it as "ac" . Now right click on the movie clip and select actions. The action script page gets opened. Paste the Script mentioned above. Now Create a new layer over the Movie clip frame and give stop script in it. Place your animation from the Second frame by creating a new layer.