# Empty MC Preloading Trouble

**URL:** <https://forum.kirupa.com/t/empty-mc-preloading-trouble/27070>\
**Category:** Uncategorized\
**Created:** [July 29, 2003, 9:30pm UTC](https://forum.kirupa.com/t/empty-mc-preloading-trouble/27070 "2003-07-29T21:30:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![posix](https://avatars.discourse-cdn.com/v4/letter/p/5f9b8f/32.png) [@posix](https://forum.kirupa.com/u/posix)\
**Post date:** [July 29, 2003, 9:30pm UTC](https://forum.kirupa.com/t/empty-mc-preloading-trouble/27070/1 "2003-07-29T21:30:09Z")

</div>

Well i searched the forums, and although I found several posts with virtually the same problem as I am having, none of them came with a solution. My problem is this:

I have a main movie, with a preloader at the beginning. I am then loading external swf’s into an empty mc at frame 10. These external swf’s have their own preloaders attaches. They all work on their own but when combined, the preloaders get stuck somewhere and load both at the start of the main timelines loading… I want the preloader for the main swf to load only the main swf content, and the other one to wait until frame 10 to start.

Ive heard several people that just say add a preloader at the beginning of ever swf and it will work, but it doesnt. Ive played around with \_root and \_parent to try and correct the situation but cant seem to figure it out. I can post fla’s if you would like…

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:** [July 29, 2003, 9:32pm UTC](https://forum.kirupa.com/t/empty-mc-preloading-trouble/27070/2 "2003-07-29T21:32:33Z")

</div>

On the preloaders for the external swfs, go through the script and change all the “\_root” to “this.”

Without the quotation marks of course.

---

<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 29, 2003, 9:41pm UTC](https://forum.kirupa.com/t/empty-mc-preloading-trouble/27070/3 "2003-07-29T21:41:46Z")

</div>

Thanks for the quick reply EG, but that didnt solve it. Actually thats the way I had it before.

Any more ideas?

---

<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 29, 2003, 10:11pm UTC](https://forum.kirupa.com/t/empty-mc-preloading-trouble/27070/4 "2003-07-29T22:11:27Z")

</div>

umm I’ve dont this before, let me look @ my project. plz hold…

---

<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 29, 2003, 10:15pm UTC](https://forum.kirupa.com/t/empty-mc-preloading-trouble/27070/5 "2003-07-29T22:15:33Z")

</div>

Here is the code that I used in this project for my preloader.

[http://www.kernhigh.org/hire](http://www.kernhigh.org/hire) I just used \_root and as you can see in the working example… well it works!

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)+"%";  
if (bytes\_loaded == bytes\_total) {  
\_root.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:** [July 29, 2003, 10:17pm UTC](https://forum.kirupa.com/t/empty-mc-preloading-trouble/27070/6 "2003-07-29T22:17:35Z")

</div>

Thanks Digital… but i figured it out.

The thing was that when you preview things in flash it uploads empty MC content at full speed, even if you hit Ctrl+Enter twice to make it load slow. I didnt know this.

I uploaded the files to my server, and the preload works fine.

Thank you guys for your help!

---

<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 29, 2003, 10:18pm UTC](https://forum.kirupa.com/t/empty-mc-preloading-trouble/27070/7 "2003-07-29T22:18:18Z")

</div>

DigitalPimp, that would work for the main movie since it’s referring to the main timeline with \_root.

If posix, wants to use that for the external movies, he/she would have to change all those \_root. to this.

That’s how my preloader works.

---

<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 29, 2003, 10:23pm UTC](https://forum.kirupa.com/t/empty-mc-preloading-trouble/27070/8 "2003-07-29T22:23:44Z")

</div>

And of course, now I find threads with this in the search… ugh I need sleep. haha

Is there any external programs that will load all movies as if you were viewing them on the internet? To load the files to my server every time I want to check them seems kinda tedious.

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:** [July 29, 2003, 10:29pm UTC](https://forum.kirupa.com/t/empty-mc-preloading-trouble/27070/9 "2003-07-29T22:29:02Z")

</div>

Me agree with EG  
:beam:
