# One preloader and two scenes

**URL:** https://forum.kirupa.com/t/one-preloader-and-two-scenes/61466
**Category:** flash
**Created:** [August 18, 2004, 8:29pm UTC](https://forum.kirupa.com/t/one-preloader-and-two-scenes/61466 "2004-08-18T20:29:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![GGROD](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@GGROD](https://forum.kirupa.com/u/GGROD)
#### Post date: [August 18, 2004, 8:29pm UTC](https://forum.kirupa.com/t/one-preloader-and-two-scenes/61466/1 "2004-08-18T20:29:02Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 18, 2004, 9:26pm UTC](https://forum.kirupa.com/t/one-preloader-and-two-scenes/61466/2 "2004-08-18T21:26:59Z")

</div>

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?
