I am trying to configure a pre-loader to work with a simple page. No animations just as soon as it loads I want it to display the page with no animations. I have the code attached to the preloader movie clip here is the code:
- Code: Select all
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
My problem is that when I test it or I even tried uploading it to the site it loads to 75% then finally displays the preloader and then loads the rest so you really have no time to look at it. The preloader should display as soon as the person goes to that page if he or she has dsl? Its not a big preloader. So im not sure. Please reply. Thanks.