# \[MX2004\]Preloader Help (Newbie)

**URL:** https://forum.kirupa.com/t/mx2004-preloader-help-newbie/71414
**Category:** flash
**Created:** [November 24, 2004, 4:39pm UTC](https://forum.kirupa.com/t/mx2004-preloader-help-newbie/71414 "2004-11-24T16:39:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![forma3](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@forma3](https://forum.kirupa.com/u/forma3)
#### Post date: [November 24, 2004, 4:39pm UTC](https://forum.kirupa.com/t/mx2004-preloader-help-newbie/71414/1 "2004-11-24T16:39:02Z")

</div>

Hi, sorry to ask about something so basic as a preloader, but mine has been giving me trouble.

```
  I am using code I wrote in Flash 5 but it ought to work fine in MX04 (it looks like the same code in various [tutorials](http://webdesign.templatemonster.com/category/flash/tutorials/how_to_create_advanced_preloader.1211.html) I've looked at). The preloader I am using is in the first scene, and the actual movie clip sequence is in scene 2. The code I am using is as follows:

```

```auto

      total_bytes = _root.getBytesTotal();
      loaded_bytes = _root.getBytesLoaded();
      remaining_bytes = total_bytes-loaded_bytes;
      percent_done = int((loaded_bytes/total_bytes)*100);
      bar.gotoAndStop(percent_done);
      ifFrameLoaded ("Main", 1) {
      	nextScene();
      }

```

Now, the problem I am having is that when the user loads the SWF in the browser, it still loads the entire file without showing the preloader. I’ve used the same code [elsewhere](http://www2.hsp.org/exhibits/strangers/revolution.html) and it worked fine.

```
  The particular file I am referring to is: [http://www.forma3.com/stuff/flash/FS%20Flash%20Advert%20-%20Slides%20-%20v1.1.8.swf](http://www.forma3.com/stuff/flash/FS%20Flash%20Advert%20-%20Slides%20-%20v1.1.8.swf)
  (Check out [http://www.forma3.com/stuff/flash/](http://www.forma3.com/stuff/flash/) for all the successful attempts I've had, ack.)

```

I intentionally stopped it at the preloader because otherwise it would simply download completely and then go to scene 2. I am hesistant to post the FLA because this is for a client, but I suppose I could send to someone who can help.

```
  Thanks so much and sorry it this is a really basic question.
```
