# Preload diffrent mc\`s

**URL:** <https://forum.kirupa.com/t/preload-diffrent-mc-s/144811>\
**Category:** Uncategorized\
**Created:** [April 17, 2005, 2:58pm UTC](https://forum.kirupa.com/t/preload-diffrent-mc-s/144811 "2005-04-17T14:58:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![goctala](https://avatars.discourse-cdn.com/v4/letter/g/e56c9b/32.png) [@goctala](https://forum.kirupa.com/u/goctala)\
**Post date:** [April 17, 2005, 2:58pm UTC](https://forum.kirupa.com/t/preload-diffrent-mc-s/144811/1 "2005-04-17T14:58:15Z")

</div>

Hi  
I have a preloader that preloads the main\_mc (movieclip) but I want to load also a diffrent movieclip with the same preloader the main2\_mc. I am using this code for the preloader on the first frame:

> 

this.onEnterFrame = function() {  
filesize = main.getBytesTotal();  
loaded = main.getBytesLoaded();  
preloader.\_visible = true;  
if (loaded != filesize) {  
preloader.preload\_bar.\_xscale = 100\*loaded/filesize;  
} else {  
preloader.\_visible = false;  
if (main.\_alpha\<100) {  
main.\_alpha += 10;  
}  
}  
};
