Hi guys,
using this code...
Actionscript Code:this.onMouseDown = function() {
// Mouse down anywhere
}
What do i put in that function to get the instance name -- if the user clicked, a button, or a movieclip.
Thankyou! :cap:
Printable View
Hi guys,
using this code...
Actionscript Code:this.onMouseDown = function() {
// Mouse down anywhere
}
What do i put in that function to get the instance name -- if the user clicked, a button, or a movieclip.
Thankyou! :cap:
Let me see if I get it...you want that when the user click a button, or a movieclip, it shows in a dynamic textbox, or in the output panel that "YOU HAVE CLICKED THE BUTTON Button_A" or "YOU HAVE CLICKED THE MOVIECLIP MC_A" ?? Is that what you want?
no - sorry! That's not what i'm trying to do. I didnt explain it very well :(
In AS3 - i could do this...
Actionscript Code:stage.addEventListener(MouseEvent.CLICK, onClick);
function onClick (event:MouseEvent):void {
trace("I CLICKED ON: " + event.target.name)
}
I'm just looking for the AS2 equivalent :yikes:
Thanks for the reply! :cap:
Now I see with clarity hehe. Let me try to help you :)
Hope this helps:
http://www.actionscript.org/forums/s....php3?t=172303