One preloader and two scenes

I currently have my preloader on scene 1 and the rest of my movie on scene 2.

Here is the code I have on my preloader movieclip:

onClipEvent (enterFrame) {
loading = _root.getBytesLoaded();
total = _root.getBytesTotal();
percent -= (percent-((loading/total)100)).25;
per = int(percent);
percentage = per+"%";[color=red]//Dynamic text field Var: percentage[/color]
loadBar._width = per; [color=red]//Symbol with instance name of loadBar[/color]
if (percent>99) {
gotoAndPlay(“Scene 2”, 1);
}
}

So basically when it is done loading I want it to goto scene 2 and play at frame 1.

Currently nothing happens.

Is there a problem having a preloader with 2 scenes?

I figured out the problem but I don’t know the solution.

When I change my publish settings to Action Script 1.0 and Flash Player 6 it works fine.

But having it with Action Script 2.0 and Flash Player 7 it does not work.

I’m using MX 2004.

Can anyone tell me what I need to change to get this to work with 2.0 and 7?