# FMX: Get reference to clicked on movie clip

**URL:** <https://forum.kirupa.com/t/fmx-get-reference-to-clicked-on-movie-clip/161073>\
**Category:** flash\
**Created:** [August 31, 2005, 6:51pm UTC](https://forum.kirupa.com/t/fmx-get-reference-to-clicked-on-movie-clip/161073 "2005-08-31T18:51:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoyZee](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@BoyZee](https://forum.kirupa.com/u/BoyZee)\
**Post date:** [August 31, 2005, 6:51pm UTC](https://forum.kirupa.com/t/fmx-get-reference-to-clicked-on-movie-clip/161073/1 "2005-08-31T18:51:23Z")

</div>

New to flash!  
I normally write javascript code, so I wonder how to do this.  
In JS “Microsoft IS” you’ll write code like this:

document.onclick = func;

function func()  
{  
var obj = event.srcElement; //And there I have reference to the object;  
}

The graphic designer creates flash drawings and then converts whatever objects to movieclips. Then passes them over to me. All these “mc” need the same action applied to them. So I don’t need to know how many they are or their names…Can this be done in Flash???  
Thanx
