# Unloading Linked MCs from Library

**URL:** <https://forum.kirupa.com/t/unloading-linked-mcs-from-library/253054>\
**Category:** flash\
**Created:** [February 26, 2008, 7:48pm UTC](https://forum.kirupa.com/t/unloading-linked-mcs-from-library/253054 "2008-02-26T19:48:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jezzhaigh](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jezzhaigh](https://forum.kirupa.com/u/jezzhaigh)\
**Post date:** [February 26, 2008, 7:48pm UTC](https://forum.kirupa.com/t/unloading-linked-mcs-from-library/253054/1 "2008-02-26T19:48:21Z")

</div>

Hi,

Can anyone help with this simple problem. Can’t quite figure out why this is not unloading:

cont.onPress = function () {  
trace (count);  
if (count == 0){  
\_root.attachMovie(“contact\_detail”, “my\_mc”, 1, {\_x: 100, \_y: 100});  
count += 1;  
}  
else if (count == 1){  
unloadMovie(“my\_mc”);  
count -= 1;  
}  
}

Many thanks,
