all groups > flash actionscript > november 2006 >
You're in the

flash actionscript

group:

variable = name of instance i just clicked



Re: variable = name of instance i just clicked Jose Guevara
11/17/2006 6:14:14 PM
flash actionscript: but1.onRelease = function () {
_root.buttonClicked = this._name ;
}

or, depending where you put the on release:

on (release) {
_root.buttonClicked = this._name ;
}


[quoted text, click to view]

variable = name of instance i just clicked jabresner
11/17/2006 11:09:27 PM
On main stage I have 4 buttons each with different instance name (but1, but2,
but3, but4).

On main timeline I want to create a variable whose value is equal to the
instance name of the button I've just clicked. How do I do this?

Thanks,
Jamie
AddThis Social Bookmark Button