Just learning AS3.
Why doesn’t this work?
yesButton.addEventListener(MouseEvent.CLICK,onTileClicked);
noButton.addEventListener(MouseEvent.CLICK,onTileClicked);
function onTileClicked(e:MouseEvent):void {
myText.text = e.target.name.toString();
trace(e.target.name.toString());
}
it traces the name of the button, but I can never get anything to show in the textbox (myText).