Solved

Flash - Name of mouse clicked symbol

Posted on 2011-03-22
2
276 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
Comment Utility
function ButtonOneOver(e:MouseEvent){  
trace(e.currentTarget.name);
}

Warm Regards
Deepanjan Das
0
 

Author Closing Comment

by:ErnstJacobs
Comment Utility
Thank you so much, it works great
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 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

13 Experts available now in Live!

Get 1:1 Help Now