-
[RESOLVED] [HELP] Get the instance of button?
Hi, I created a code to get the instance of the button when clicked, but it's not working, any idea how to fix?
Code:
var slotsArray:Array = new Array(slot_01, slot_02);
for (var i=0; i<slotsArray.length; i++)
{
currentSlot = eval(slotsArray[i]);
currentSlot.onRelease = function():Void
{
trace ("Botão " + i + " clicado." );
}
}
-
.
Hi,
Use
trace ("Botão " + this._name + " clicado." );
or
trace ("Botão " + this + " clicado." );
-
Hey bro, thank you,
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|