Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Flash - Name of mouse clicked symbol

Posted on 2011-03-22
2
282 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sums of coloumns in html/java 15 80
Need some help with powershell script 5 55
ROBOFTP UNZIP 1 53
Copy items in a folder structure then put them back. 4 26
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable 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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

860 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