Flash - Name of mouse clicked symbol

I'm trying to find out how I can get the name of the symbol I've clicked.

So I've got a symbol named "button1" and I've got an onclick event working. Like this.

ButtonOne.addEventListener(MouseEvent.MOUSE_UP,ButtonOneUp);
function ButtonOneOver(e:MouseEvent){	

}

Open in new window


Now I need the name of the clicked symbol which is "button1". How can I achieve this?
ErnstJacobsAsked:
Who is Participating?
 
deepanjandasConnect With a Mentor Commented:
function ButtonOneOver(e:MouseEvent){  
trace(e.currentTarget.name);
}

Warm Regards
Deepanjan Das
0
 
ErnstJacobsAuthor Commented:
Thank you so much, it works great
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.