# Guys need help with preloader urgently

**URL:** <https://forum.kirupa.com/t/guys-need-help-with-preloader-urgently/61066>\
**Category:** flash\
**Created:** [August 15, 2004, 4:44pm UTC](https://forum.kirupa.com/t/guys-need-help-with-preloader-urgently/61066 "2004-08-15T16:44:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kardis](https://avatars.discourse-cdn.com/v4/letter/k/ec9cab/32.png) [@kardis](https://forum.kirupa.com/u/kardis)\
**Post date:** [August 15, 2004, 4:44pm UTC](https://forum.kirupa.com/t/guys-need-help-with-preloader-urgently/61066/1 "2004-08-15T16:44:13Z")

</div>

Hi guys,

I in need of help here, I have a created a MC in my main frame, so i wanted to load an external swf into the MC. The external swf contain a picture and a preloader… However, the picture did showed up but not my preloader… Tested it on the net before. my picture is around 200kb so that means the dwonloading speed cannot be that fast, until it skip the preloader…

heres the code(preloader in external swf…):

bytes\_loaded = Math.round(getBytesLoaded());  
bytes\_total = Math.round(getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
loadBar.\_width = getPercent_100;  
loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
gotoAndPlay(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:** [August 15, 2004, 6:19pm UTC](https://forum.kirupa.com/t/guys-need-help-with-preloader-urgently/61066/2 "2004-08-15T18:19:23Z")

</div>

Is your picture or another layer covering your preloader?

---

<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:** [August 15, 2004, 6:25pm UTC](https://forum.kirupa.com/t/guys-need-help-with-preloader-urgently/61066/3 "2004-08-15T18:25:03Z")

</div>

Yours:

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

Mine:  
totalBytes = Math.round(getBytesTotal() / 1024);  
loadedBytes = Math.round(getBytesLoaded() / 1024);  
percentDone = Math.round((loadedBytes / totalBytes) \* 100);  
if (\_root.\_framesloaded \>= \_root.\_totalframes) {  
gotoAndPlay(“start”);  
}

Mine works fine, maybe if yours was set up like mine it would work? :-\

---

<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:** [August 16, 2004, 4:42am UTC](https://forum.kirupa.com/t/guys-need-help-with-preloader-urgently/61066/4 "2004-08-16T04:42:11Z")

</div>

hmmm… tahnks i will try your scripts…

by the way my picture is set as another layer…

---

<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:** [August 16, 2004, 7:02am UTC](https://forum.kirupa.com/t/guys-need-help-with-preloader-urgently/61066/5 "2004-08-16T07:02:43Z")

</div>

nah it didn’t work… thanks any way

still bothering by it…

anyone have other codes??
