# Calling MC with preloader

**URL:** <https://forum.kirupa.com/t/calling-mc-with-preloader/14051>\
**Category:** Uncategorized\
**Created:** [February 21, 2003, 12:10pm UTC](https://forum.kirupa.com/t/calling-mc-with-preloader/14051 "2003-02-21T12:10:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![elietabet](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@elietabet](https://forum.kirupa.com/u/elietabet)\
**Post date:** [February 21, 2003, 12:10pm UTC](https://forum.kirupa.com/t/calling-mc-with-preloader/14051/1 "2003-02-21T12:10:43Z")

</div>

in this tutorial on Kirupa : [http://www.kirupa.com/developer/mx/full\_site.htm](http://www.kirupa.com/developer/mx/full_site.htm)  
each time u click a button, it calls and load an external MC and play it in the main MC, can a preloader be added prior to any loading of external MCs ? how to add it if all external MCs have only one frame in all layers ??

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:** [February 21, 2003, 2:38pm UTC](https://forum.kirupa.com/t/calling-mc-with-preloader/14051/2 "2003-02-21T14:38:14Z")

</div>

Did you check the preloader tutorials?

pom 🙂

---

<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:** [February 21, 2003, 4:37pm UTC](https://forum.kirupa.com/t/calling-mc-with-preloader/14051/3 "2003-02-21T16:37:21Z")

</div>

sorry i didnt mean external MCs, i meant external SWFs files.  
the tutorial is to be done inside an MC, not for external SWF.

---

<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:** [February 21, 2003, 5:36pm UTC](https://forum.kirupa.com/t/calling-mc-with-preloader/14051/4 "2003-02-21T17:36:09Z")

</div>

[http://www.kirupaforum.com/showthread.php?s=&threadid=15699](http://www.kirupaforum.com/showthread.php?s=&threadid=15699)

---

<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:** [February 21, 2003, 7:15pm UTC](https://forum.kirupa.com/t/calling-mc-with-preloader/14051/5 "2003-02-21T19:15:02Z")

</div>

i got it, but where exactly should i put this ?  
i guess in the external SWF, but where, which layer and which frame ?

---

<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:** [February 21, 2003, 10:07pm UTC](https://forum.kirupa.com/t/calling-mc-with-preloader/14051/6 "2003-02-21T22:07:44Z")

</div>

i tried to add this code to each button, i got many errors. can u guide me thru it plz ??

---

<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:** [February 22, 2003, 11:34am UTC](https://forum.kirupa.com/t/calling-mc-with-preloader/14051/7 "2003-02-22T11:34:11Z")

</div>

?!! where do i add this code man !!! i tried all places it cant seem to 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:** [February 22, 2003, 6:40pm UTC](https://forum.kirupa.com/t/calling-mc-with-preloader/14051/8 "2003-02-22T18:40:56Z")

</div>

Check the example.

---

<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:** [February 22, 2003, 9:41pm UTC](https://forum.kirupa.com/t/calling-mc-with-preloader/14051/9 "2003-02-22T21:41:22Z")

</div>

u got me confused.  
this is my issue:

i have the main page, empty. it has the background, the buttons and an empty target MC where the external SWF will load.

the external SWFs are the 5 sections, or pages, of my website. when u click on any of the 5 buttons that i have, it calls the external SWF and load it in the target MC in the main page.

and what i want is to add that preloader prior to the loading of any of those external SWFs.

now where should i put ur code? thats where i got lost.

thx buddy

---

<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:** [February 22, 2003, 9:47pm UTC](https://forum.kirupa.com/t/calling-mc-with-preloader/14051/10 "2003-02-22T21:47:02Z")

</div>

If you have the function inserted in your First frame, then you can just call it from any button, for example:

myButton.onRelease = function(){  
preload(“file.swf”, depth, x, y);  
}
