go_btn.addEventListener(MouseEvent.CLICK, getPlayerName);
var playerName;
function getPlayerName(e:MouseEvent)
{
playerName = playerName_txt.text;
}
trace(playerName);
Hi, is there any way to have this work. I want to update a variable outside the scope of the function.
Thanks