# How to get a movie clips name?

**URL:** <https://forum.kirupa.com/t/how-to-get-a-movie-clips-name/273009>\
**Category:** Uncategorized\
**Created:** [October 10, 2008, 7:00am UTC](https://forum.kirupa.com/t/how-to-get-a-movie-clips-name/273009 "2008-10-10T07:00:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![soha\_20088](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@soha\_20088](https://forum.kirupa.com/u/soha_20088)\
**Post date:** [October 10, 2008, 7:00am UTC](https://forum.kirupa.com/t/how-to-get-a-movie-clips-name/273009/1 "2008-10-10T07:00:42Z")

</div>

Hi ,

I want to write a function in which i want to trace/get a movie clip’s name on which i m clicking… By this method i dont have to write code on all movie clips and it will reduced my time also.  
I want to right a function like :

var MouseListener:Object = new Object();  
MouseListener.onMouseDown = function() {  
mvis = this.\_name;  
trace("mvis : "+mvis);  
};  
Mouse.addListener(MouseListener);

but it is not giving the movie clip’s name…  
What is the another option to do this ?  
can somebody please help me?

-soha
