I have 4 buttons being read in via XML. All fine and dandy work well, almost do what they’re supposed to do.
What I’m trying to add to their functionality is a lock on the one that was just clicked. Used to be able to do it in AS2 but taking my first crack at AS3, it’s not working. Want to lock the button that the user just click (swap out graphics to indicate locked state) and have the other 3 remaining buttons active. If user clicks one of the other three buttons, the current locked button unlocks and the newly clicked button locks.
Here is what I have so far, I know I’m missing parts, just can’t get what those missing parts are.
function myRelease(e:MouseEvent):void {
e.currentTarget.buttonMode = false;
e.currentTarget.mouseEnabled = false;
e.currentTarget.gotoAndStop("_down");
e.currentTarget.watchNow.gotoAndStop("_down");
}
Any help would be greatly appreciated.