# When mouse is clicked, detect which movieclip is clicked

**URL:** <https://forum.kirupa.com/t/when-mouse-is-clicked-detect-which-movieclip-is-clicked/296060>\
**Category:** flash\
**Created:** [September 9, 2009, 6:26am UTC](https://forum.kirupa.com/t/when-mouse-is-clicked-detect-which-movieclip-is-clicked/296060 "2009-09-09T06:26:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patspats](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@patspats](https://forum.kirupa.com/u/patspats)\
**Post date:** [September 9, 2009, 6:26am UTC](https://forum.kirupa.com/t/when-mouse-is-clicked-detect-which-movieclip-is-clicked/296060/1 "2009-09-09T06:26:31Z")

</div>

hi there

I have parent movieclip and in that many different children movieclips

What i want to do is when i CLICK, i want to detect which movieclip it has clicked and call corresponding function (defined by onpress event) of that movieclip.

Thanks for help in advance

Regards
