Preloader and Flash Player 7


Can anyone tell me why my preloader (working when published in Flash Player 6) no longer works when published in Flash Player 7?

I’m not proficent in AS and have been using this preloader in all my projects to date. The need for css with dynamic text has pushed me to publish in FP7 but my preloader no longer works.

I have the following AS attached to my perloader clip in a single frame in Scene 1…

onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)100)).25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {