# Preloader and LoadMovie WAR! - not working

**URL:** <https://forum.kirupa.com/t/preloader-and-loadmovie-war-not-working/269089>\
**Category:** Uncategorized\
**Created:** [August 22, 2008, 11:26am UTC](https://forum.kirupa.com/t/preloader-and-loadmovie-war-not-working/269089 "2008-08-22T11:26:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![four4swords](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Post date:** [August 22, 2008, 11:26am UTC](https://forum.kirupa.com/t/preloader-and-loadmovie-war-not-working/269089/1 "2008-08-22T11:26:45Z")

</div>

hi,

I want to import an external swf… with the function “loadMovie()”… and after that. i have a preloader script… the bars and text are already on the stage in my original movie…

however… when i test this… if i have a LoadMovie() in the script… the preloader(bars and stuff) just won’t show up…

In frame one… i have this…

```php
this.createEmptyMovieClip("dummy", 22);
loadMovie("RPGMAIN.swf", dummy);
this.onEnterFrame = function() {
    bytes_loaded = Math.round(dummy.getBytesLoaded());
    bytes_total = Math.round(dummy.getBytesTotal());
    getPercent = bytes_loaded/bytes_total;
    this.loadBar._width = getPercent*200;
    this.loadText = Math.round(getPercent*100)+"%";
    if (bytes_loaded == bytes_total) {
        loadMovie("RPGMAIN.swf", _root);
    }
};

```

can someone tell me what i’m doing wrong here?

thanks!
