# Get movieclip name on click

**URL:** https://forum.kirupa.com/t/get-movieclip-name-on-click/316547
**Category:** flash
**Created:** [November 25, 2010, 4:29am UTC](https://forum.kirupa.com/t/get-movieclip-name-on-click/316547 "2010-11-25T04:29:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lymleon](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@lymleon](https://forum.kirupa.com/u/lymleon)
#### Post date: [November 25, 2010, 4:29am UTC](https://forum.kirupa.com/t/get-movieclip-name-on-click/316547/1 "2010-11-25T04:29:27Z")

</div>

I have 3 movieclip on stage. On user’s click, I wish to attach another movieclip on the same x,y as the selected movieclip.

So right now, i’m guessing by getting the selected movieclip name, then i could get the x,y of it.

So can anyone tell me how to get a name of selected movieclip when any of them is pressed?

Really appreciate the help. Thanks
