# Flash as2 Attaching movieClip to position of mouse click

**URL:** <https://forum.kirupa.com/t/flash-as2-attaching-movieclip-to-position-of-mouse-click/331284>\
**Category:** Uncategorized\
**Created:** [June 28, 2013, 8:24pm UTC](https://forum.kirupa.com/t/flash-as2-attaching-movieclip-to-position-of-mouse-click/331284 "2013-06-28T20:24:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Scholz](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@Jason\_Scholz](https://forum.kirupa.com/u/Jason_Scholz)\
**Post date:** [June 28, 2013, 8:24pm UTC](https://forum.kirupa.com/t/flash-as2-attaching-movieclip-to-position-of-mouse-click/331284/1 "2013-06-28T20:24:38Z")

</div>

I used to remember how to do this, but I can’t figure it out. I am creating an axe throwing mini-game. I have a circle called circle\_mc. Inside I renamed it again this time to hitTest\_btn. So, circle\_mc and hitTest\_btn. Both same, size shape. hitTest\_btn alpha is set to 0.

I have a Hatchet I drew for my cursor. When you move your mouse left and right, the hatchet movies left and right. Still with me? Ok. When I click on the circle, (which I am actually clicking on the hitTest\_btn nested inside circle\_mc), the cursor is hidden. On the hitTest\_btn actions, the cursor is hidden, and THIS is the part I can’t figure out: I need to call a movieClip from the library(hatchet\_mc), and I need it to attach to the hitTest\_btn whereever you click at. I was able to get the hatchet\_mc to attach just fine if I gave the hatchet exact x/y coordinates. I need the hatchet\_mc to attach to whereever you click at on the hitTest\_btn. Any ideas? Thanks!
