Solved

Flash - Name of mouse clicked symbol

Posted on 2011-03-22
2
279 Views
Last Modified: 2012-05-11
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?
0
Comment
Question by:ErnstJacobs
2 Comments
 
LVL 17

Accepted Solution

by:
deepanjandas earned 500 total points
ID: 35189091
function ButtonOneOver(e:MouseEvent){  
trace(e.currentTarget.name);
}

Warm Regards
Deepanjan Das
0
 

Author Closing Comment

by:ErnstJacobs
ID: 35189401
Thank you so much, it works great
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
This article will show, step by step, how to integrate R code into a R Sweave document
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now