Question
onMouseUp returning name?
Hi guys,
I have a bunch of buttons that I want to have do the same thing; pass their instance names to a function that will advanced the play head appropriately. To avoid having to write a ton of .onRelease functions, I'm trying to find a way that I can have a symbol return it's name if the cursor is over it when clicked. I vaguely remember that one of the mouse events would do this by default, passing it through a 'me' type placeholder.
Something to this effect:
onMouseUp= function(mySymbol) {
trace(mySymbol._name);
}
Am I way off? It's seems like there should be an easy way to do what I'm talking about.
Thanks.
I have a bunch of buttons that I want to have do the same thing; pass their instance names to a function that will advanced the play head appropriately. To avoid having to write a ton of .onRelease functions, I'm trying to find a way that I can have a symbol return it's name if the cursor is over it when clicked. I vaguely remember that one of the mouse events would do this by default, passing it through a 'me' type placeholder.
Something to this effect:
onMouseUp= function(mySymbol) {
trace(mySymbol._name);
}
Am I way off? It's seems like there should be an easy way to do what I'm talking about.
Thanks.