ToshTrent
Technical User
- Jul 27, 2003
- 209
Hi,
I've been trying to get the instance name of the button the user clicks on to help make my code easier to manage etc, how do i get the name of the button they have just clicked on?
I found this code in the flash help, but I can't seem to make it work for a single button, the code here gets the name of every button on the time line.
on (release){
for (i in this) {
if (this instanceof Button) {
trace(this._name);}
}
}
Your help would be much appriciated!
[red]
Thankyou[/red]
Matt
I've been trying to get the instance name of the button the user clicks on to help make my code easier to manage etc, how do i get the name of the button they have just clicked on?
I found this code in the flash help, but I can't seem to make it work for a single button, the code here gets the name of every button on the time line.
on (release){
for (i in this) {
if (this instanceof Button) {
trace(this._name);}
}
}
Your help would be much appriciated!
[red]
Thankyou[/red]
Matt