# Making Attached Movie Clip Clickable

**URL:** https://forum.kirupa.com/t/making-attached-movie-clip-clickable/222786
**Category:** flash
**Created:** [April 16, 2007, 11:15pm UTC](https://forum.kirupa.com/t/making-attached-movie-clip-clickable/222786 "2007-04-16T23:15:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![arunforce](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@arunforce](https://forum.kirupa.com/u/arunforce)
#### Post date: [April 16, 2007, 11:15pm UTC](https://forum.kirupa.com/t/making-attached-movie-clip-clickable/222786/1 "2007-04-16T23:15:04Z")

</div>

Say I can create 200 different movie clips on the stage when I press a button and want to destroy them when I click on them, how would I do this. ![](http://forum.kirupa.com/uploads/kirupa/1942/ba0562ccd0e0e051.gif)

I tried creating the movie clip:  
ActionScript Code:  
[LEFT][COLOR=#993300]\_root[/COLOR].[COLOR=#993300]attachMovie[/COLOR][COLOR=#000000]([/COLOR]box, [COLOR=#0000FF]“a342342”[/COLOR], [COLOR=#993300]\_root[/COLOR].[COLOR=#993300]getNextHighestDepth[/COLOR]COLOR=#000000[/COLOR], [COLOR=#000000]{[/COLOR][COLOR=#993300]\_x[/COLOR]: [COLOR=#000000]200[/COLOR], [COLOR=#993300]\_y[/COLOR]: [COLOR=#000000]200[/COLOR][COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#993300]\_root[/COLOR].[COLOR=#000000]a342342[/COLOR].[COLOR=#993300]onRelease[/COLOR] = [COLOR=#993300]function[/COLOR]COLOR=#000000[/COLOR]  
[COLOR=#000000]{[/COLOR]  
[COLOR=#993300]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[/LEFT]

But it doesn’t work. The attached object isn’t click able in any way.
