# Preloader in external movie

**URL:** <https://forum.kirupa.com/t/preloader-in-external-movie/35261>\
**Category:** Uncategorized\
**Created:** [November 12, 2003, 2:10am UTC](https://forum.kirupa.com/t/preloader-in-external-movie/35261 "2003-11-12T02:10:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![barge](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@barge](https://forum.kirupa.com/u/barge)\
**Post date:** [November 12, 2003, 2:10am UTC](https://forum.kirupa.com/t/preloader-in-external-movie/35261/1 "2003-11-12T02:10:50Z")

</div>

OK I have a preloader in a external movie, it works fine when I preview the single .swf, but when I try to preview it as a external movie being loaded, the preloader doesn’t work, it justs stays there and never loads the movie. Thanks in advance. I would post the .fla but it’s too large.

Here is the actionscript I used:

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadBar.\_width = getPercent_100;  
\_root.loadText = Math.round(getPercent_100)+" percent";  
if (bytes\_loaded == bytes\_total) {  
\_root.gotoAndStop(3);  
}

---

<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:** [November 12, 2003, 2:30am UTC](https://forum.kirupa.com/t/preloader-in-external-movie/35261/2 "2003-11-12T02:30:39Z")

</div>

```auto
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+" percent";
if (bytes_loaded == bytes_total) {
this.gotoAndStop(3);
}

```

---

<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:** [November 12, 2003, 2:50am UTC](https://forum.kirupa.com/t/preloader-in-external-movie/35261/3 "2003-11-12T02:50:45Z")

</div>

I tried that and it didn’t work. Do you think I have to upload them? Thanks.

---

<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:** [November 12, 2003, 2:52am UTC](https://forum.kirupa.com/t/preloader-in-external-movie/35261/4 "2003-11-12T02:52:45Z")

</div>

Please 🙂

---

<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:** [November 12, 2003, 3:04am UTC](https://forum.kirupa.com/t/preloader-in-external-movie/35261/5 "2003-11-12T03:04:09Z")

</div>

Ok now it loads, the bar works perfectly, but…  
when it gets to 100 it just stays, When I preview just the .swf, it works fine, whats wrong? Thanks.

---

<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:** [November 12, 2003, 3:08am UTC](https://forum.kirupa.com/t/preloader-in-external-movie/35261/6 "2003-11-12T03:08:02Z")

</div>

What you mean by stays? Have you tried using gotoAndPlay?
