# Script error of MX2004 setting?

**URL:** https://forum.kirupa.com/t/script-error-of-mx2004-setting/40562
**Category:** flash
**Created:** [January 19, 2004, 11:43pm UTC](https://forum.kirupa.com/t/script-error-of-mx2004-setting/40562 "2004-01-19T23:43:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Invision\_Design](https://avatars.discourse-cdn.com/v4/letter/i/c0e974/32.png) [@Invision\_Design](https://forum.kirupa.com/u/Invision_Design)
#### Post date: [January 19, 2004, 11:43pm UTC](https://forum.kirupa.com/t/script-error-of-mx2004-setting/40562/1 "2004-01-19T23:43:16Z")

</div>

Okay guys,

My flash movie keeps loading as it plays, instead of loading while the preloader plays. I’ve tried 2 simple preloaders, but they are not working. My movie is made up of 2 scenes: 1 is the preloader, 2 is the movie, which is 400 frames.

The preloaders I’ve tried are as follows:

–First Preloader (very simple):  
action 1:  
ifFrameLoaded (“Scene 2”, 400) {  
gotoAndPlay(“Scene 2”, 1);  
}  
action 2:  
gotoAndPlay(“Scene 1”, 1);

–Second Preloader:  
action 1:  
bytes\_loaded = Math.round(\_this.getBytesLoaded());  
bytes\_total = Math.round(\_this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(“Scene 2”, 1);  
}  
action 2:  
gotoAndPlay(“Scene 1”, 1);

In both cases I never see the preloader. The movie just starts playing and loads as it goes. What am I doing wrong? This is for a client so I would appreciate some help ASAP!

Thanks!
