# Question on loadmovie

**URL:** https://forum.kirupa.com/t/question-on-loadmovie/848
**Category:** Uncategorized
**Created:** [July 31, 2002, 10:02pm UTC](https://forum.kirupa.com/t/question-on-loadmovie/848 "2002-07-31T22:02:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RageW0lf](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@RageW0lf](https://forum.kirupa.com/u/RageW0lf)
#### Post date: [July 31, 2002, 10:02pm UTC](https://forum.kirupa.com/t/question-on-loadmovie/848/1 "2002-07-31T22:02:37Z")

</div>

I am loading a .swf into my main flash sequence using the loadmovie command.

will it need a preloader, or will it only appear when fully loaded? thx.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 31, 2002, 11:10pm UTC](https://forum.kirupa.com/t/question-on-loadmovie/848/2 "2002-07-31T23:10:15Z")

</div>

Depending on this size of the loaded swf you should have a preloader, because there will most likely always be a delay because your loading the file from and external server rather then from inside the document. You can attach the preloader code to the movieclip that your loading your swf into.

Code:

on(enterFrame){  
if(totalBytes == undefined)  
totalBytes = this.getBytesTotal;  
}else{  
loaded = this.getBytesLoaded;  
remaining = this.getBytesTotal-this.getBytesLoaded;  
percent = int(this.getBytesLoaded()/this.getBytesTotal() \* 100);  
\_root.percentoutput = percent;  
}  
}

Hope this helps.

Kyle
