I have an array called lotr that is being displayed into a textfield. I’ve created an input textfield and a button to allow users to add to the array. My script looks like this:
addto_btn.addEventListener(MouseEvent.CLICK, lotrAdd);
function lotrAdd(event:MouseEvent):void {
var lotrNew:String = myvalue_txt.text;
lotr.push(lotrNew);
trace(lotr);
}
The output window shows new values, but the values don’t get updated in the textfield. Is there such a thing as an update or refresh command for the player?
Thanks.