# Need help to check MC for attached movie

**URL:** <https://forum.kirupa.com/t/need-help-to-check-mc-for-attached-movie/278758>\
**Category:** Uncategorized\
**Created:** [January 5, 2009, 12:25pm UTC](https://forum.kirupa.com/t/need-help-to-check-mc-for-attached-movie/278758 "2009-01-05T12:25:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drawsoup](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/drawsoup/32/80_2.png) [@Drawsoup](https://forum.kirupa.com/u/Drawsoup)\
**Post date:** [January 5, 2009, 12:25pm UTC](https://forum.kirupa.com/t/need-help-to-check-mc-for-attached-movie/278758/1 "2009-01-05T12:25:50Z")

</div>

Hey there!  
I’m kind’a curious about this one. I have this flash timeline with an empty movieclip in it. And i have some button that attaches an ‘actionscript-exported’ movieClip from the library… like this:

someBTN.onRelease = function(){  
NAV\_MC.attachMovie(“some\_mc”,“some\_instancename”,1);  
}

Now…each time i press that button, the ‘some\_mc’ loads. Is there some clever way of checking if the movieclip has already loaded, so that it doesn’t load if it’s already loaded…did that make any sense?

I know you can do it, if the movieclip you load, is a external .swf. something like…  
someBTN.onRelease = function(){  
if(\_root.NAV\_MC==external\_mc.swf, true){  
}else{  
// some action  
}  
}

Can you do this with attached MC’s?

Any help is appreciated 🙂

cheers, mikz
