Relatively simple ActionScript question
Relatively simple ActionScript question
- Started
- Last post
- 1 Response
- nearestexit
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?
- joyride0
within the onRelease, just set the var to but1, but2 etc
like
varName = " " ;if you've got the code within the button, you will need to use _parent. varName =
Because your tech. inside that buttons timeline