# Automatic loarding

**URL:** <https://forum.kirupa.com/t/automatic-loarding/179240>\
**Category:** Uncategorized\
**Created:** [February 17, 2006, 11:07pm UTC](https://forum.kirupa.com/t/automatic-loarding/179240 "2006-02-17T23:07:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deucescorner](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@deucescorner](https://forum.kirupa.com/u/deucescorner)\
**Post date:** [February 17, 2006, 11:07pm UTC](https://forum.kirupa.com/t/automatic-loarding/179240/1 "2006-02-17T23:07:49Z")

</div>

Hey,

This is probably a real newbie question, but I would like my first \_mc to load once the page itself is done loading. Here is the actionscript i’m using for my buttons to load the \_mc accordingly.

var btnNum;  
function buttonHandler(who:Number){  
if(btnNum==who)return;  
\_root.container\_mc[“menu”+btnNum+"\_mc"].play();  
\_root.container\_mc[“menu”+who+"\_mc"].play();  
btnNum=who;  
}  
\_root.buttons\_mc.home\_btn.onRelease = function(){  
\_root.buttonHandler(1);  
}  
\_root.buttons\_mc.portfolio\_btn.onRelease = function(){  
\_root.buttonHandler(2);  
}  
\_root.buttons\_mc.favorites\_btn.onRelease = function(){  
\_root.buttonHandler(3);  
}  
\_root.buttons\_mc.merchandises\_btn.onRelease = function(){  
\_root.buttonHandler(4);  
}  
\_root.buttons\_mc.contact\_btn.onRelease = function(){  
\_root.buttonHandler(5);  
}

I would really appreciate the help

thanks in advance
