# Prloaders in MC's

**URL:** <https://forum.kirupa.com/t/prloaders-in-mcs/92748>\
**Category:** Uncategorized\
**Created:** [October 21, 2003, 10:10am UTC](https://forum.kirupa.com/t/prloaders-in-mcs/92748 "2003-10-21T10:10:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kev](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kev](https://forum.kirupa.com/u/kev)\
**Post date:** [October 21, 2003, 10:10am UTC](https://forum.kirupa.com/t/prloaders-in-mcs/92748/1 "2003-10-21T10:10:21Z")

</div>

I just wondered if it is possible to have a preloader for each MC within a movie?

I have one simple preloader for the movie:

[AS]  
total\_bytes = \_root.getBytesTotal();  
loaded\_bytes = \_root.getBytesLoaded();  
percent\_done = int((loaded\_bytes/total\_bytes)\*100);  
ifFrameLoaded (“Scene 1”, 30) {  
play ();  
}

[/AS]

Now my movie is 60 frames long, the above will only preload the first 30 frames right? So If I have a button that goes to frame 35 on the main timeline and on frame 35 is MC1, can I have a preloder within this MC1 which is 55 frames long? I am just trying to get away from loading seperate swf’s into levels!

maybe something like this:

[AS]  
total\_bytes = \_root.MC1.getBytesTotal();  
loaded\_bytes = \_root.MC1.getBytesLoaded();  
percent\_done = int((loaded\_bytes/total\_bytes)\*100);  
ifFrameLoaded ("\_root.MC1", 55) {  
tellTarget ("\_root.MC1") {  
play ();  
}  
}

[/AS]

I tried the above and it just showed 100%

Any ideas where I went wrong

Thanks
