I’m not sure how this is done with AS 3.0 but when users click on an answer I have a fake radio button that highlights. If the user then changes their mind and clicks on another option I would like the first radio button to turn off and the newly clicked button to highlight instead. I’m not sure how to keep a reference of the item that was last clicked.
answerSprite.addEventListener(MouseEvent.CLICK,clickAnswer);// Button Listener
public function clickAnswer(event:MouseEvent) {
//lastButton.gotoAndStop(1);
var radioButtonOn:MovieClip = event.currentTarget.getChildByName('radioButton');
radioButtonOn.gotoAndStop(2);
//var lastButton:MovieClip = event.currentTarget.getChildByName('radioButton');
}
Has anyone tried something similar with buttons?