# Using loadMovie to load a movie with a preloader?

**URL:** <https://forum.kirupa.com/t/using-loadmovie-to-load-a-movie-with-a-preloader/107630>\
**Category:** Uncategorized\
**Created:** [April 17, 2004, 7:26am UTC](https://forum.kirupa.com/t/using-loadmovie-to-load-a-movie-with-a-preloader/107630 "2004-04-17T07:26:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GreenLantern](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/greenlantern/32/393_2.png) [@GreenLantern](https://forum.kirupa.com/u/GreenLantern)\
**Post date:** [April 17, 2004, 7:26am UTC](https://forum.kirupa.com/t/using-loadmovie-to-load-a-movie-with-a-preloader/107630/1 "2004-04-17T07:26:14Z")

</div>

I am using loadMovie to load a movie that has a preloader, but the preloader will not work?

```auto

var total = _root.getBytesTotal();
var bytesLoaded = _root.getBytesLoaded();
var perc = (bytesLoaded/total)*100;
percent = perc+"%";
showBytes = bytesLoaded + " of " + total;
setProperty("progress", _xscale, perc);
if (bytesLoaded == total) {
percent = "complete";
gotoAndPlay("Done");
} else{
gotoAndPlay("Nope");
}

```

Nope is the first frame (the frame this code is one), and Done is when the movie begins.  
percent and showbytes are both dynamic text fields.
