# External mc preloader

**URL:** <https://forum.kirupa.com/t/external-mc-preloader/27783>\
**Category:** Uncategorized\
**Created:** [August 6, 2003, 4:03pm UTC](https://forum.kirupa.com/t/external-mc-preloader/27783 "2003-08-06T16:03:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahaab](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ahaab](https://forum.kirupa.com/u/ahaab)\
**Post date:** [August 6, 2003, 4:03pm UTC](https://forum.kirupa.com/t/external-mc-preloader/27783/1 "2003-08-06T16:03:05Z")

</div>

first thread here.  
I am trying to organise a product gallery for furniture factory.  
I placed an external mc in a empty mc on main flmxmovie.  
does the preloader go on the external mc??? or the main movie

sorry for stuppid question  
help asap… 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:** [August 6, 2003, 4:06pm UTC](https://forum.kirupa.com/t/external-mc-preloader/27783/2 "2003-08-06T16:06:30Z")

</div>

Welcome to Kirupaforum =)

Well, it can be done both, but it’s easier to place it on the external SWF. Especially when using [this preloader tutorial](http://www.kirupa.com/developer/mx/percentagepreloader.htm)

---

<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 13, 2003, 2:39pm UTC](https://forum.kirupa.com/t/external-mc-preloader/27783/3 "2003-08-13T14:39:38Z")

</div>

thanks for nice script for preloader; had one but not so smooth running.,  
i have still one doubt. among the million doubts coming.  
the movie i load is external, so i see underneath it the menus from the main movie( how to prevent this from happening) or what code am i to give on the buttons to make the external to disapear an go to the link i want.  
i tried to script the unload but seems just to staal tha main movie.  
thanks a million for helping. greetings from portugal  
:thumb:

---

<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 13, 2003, 3:46pm UTC](https://forum.kirupa.com/t/external-mc-preloader/27783/4 "2003-08-13T15:46:03Z")

</div>

the more ‘elegant’ and ‘time saving’ method is to make one preloader on the main menu, rather than each swf has its own preloader. It works faster. On the onPress event of each button,  
use something like movieTobeLoaded=“profile.swf”. Try this on your preloader frame. I dunno if it’ll work but try it.

```auto

content.loadMovie(_root.movieTobeLoaded)
stop()
this.onEnterFrame=function(){
loaded1=content.getBytesLoaded()
total1=content.getBytesTotal()
bar._xscale=Math.floor((loaded1/total1)*100)
if(loaded1==total1){
nextFrame()
}
}

```

---

<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 13, 2003, 4:29pm UTC](https://forum.kirupa.com/t/external-mc-preloader/27783/5 "2003-08-13T16:29:21Z")

</div>

thanks for helping.  
but i’m quite green om AS, so i ask what does it mean the tobe loaded comand make!!:beam:
