# Preloader issue

**URL:** <https://forum.kirupa.com/t/preloader-issue/215472>\
**Category:** Uncategorized\
**Created:** [February 7, 2007, 4:13pm UTC](https://forum.kirupa.com/t/preloader-issue/215472 "2007-02-07T16:13:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navarone](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Navarone](https://forum.kirupa.com/u/Navarone)\
**Post date:** [February 7, 2007, 4:13pm UTC](https://forum.kirupa.com/t/preloader-issue/215472/1 "2007-02-07T16:13:00Z")

</div>

I am using the following script to preload my swf. The problem is that my pause/play button in the swf is not working. What am I doing wrong.

```auto

this.reelmc._visible = false;
this.loadbar._visible = false;
percent_display = "";
//create a new movieclip to load
//the external movie into
this.createEmptyMovieClip("container",10);
//load the external movie into the new movieclip
container.loadMovie("bank_flash5_web.swf");
//check the download status of the external
//movie once every frame
this.onEnterFrame=function(){
    //trace the percentage of the movie that has loaded
    //trace(percent);
 percent=(this.container.getBytesLoaded()/this.container.getBytesTotal())*100;
 if(!isNaN(percent)){
  if (percent == 0) {
   percent_display = "";
  } else {
   trace(percent);
   percent_display = Math.ceil(percent) + "% LOADED.";
  }
  this.loadbar._visible = true;
  this.loadbar._xscale = percent;
  if (percent > 1) {
   this.reelmc._visible = true;
  }
  container.stop();
    }
    if(percent == 100){
  delete this.onEnterFrame;
  this.reelmc._visible = false;
  percent_display = "";
  this.loadbar._visible = false;
  loadMovieNum("bank_flash5_web.swf", 0);
 }
};
stop();

```
