# Attaching a Clickable MC from the Library

**URL:** <https://forum.kirupa.com/t/attaching-a-clickable-mc-from-the-library/245594>\
**Category:** flash\
**Created:** [December 1, 2007, 12:53pm UTC](https://forum.kirupa.com/t/attaching-a-clickable-mc-from-the-library/245594 "2007-12-01T12:53:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [December 1, 2007, 12:53pm UTC](https://forum.kirupa.com/t/attaching-a-clickable-mc-from-the-library/245594/1 "2007-12-01T12:53:53Z")

</div>

Hi there,

When I click my ‘hit\_mc’, ‘hitarea\_mc’ gets placed on the stage from the library. When I click ‘hitarea\_mc’, I want it to disappear.

So Ive done the following, but the newly attached hitarea\_mc refuses to be clickable. How would I tell AS to make it thus …  
Thanks…

```auto

var a:Number = Stage.width/2;
var b:Number = Stage.height/2;

function attach (){
    _root.attachMovie("hitarea","hitarea_mc",10,{_x:a,_y:b});
    
}

hit_mc.onRelease = function(){
    attach();
}
hitarea_mc.onRelease = function(){
    this._alpha = 0;
    
}

```
