Currently trying to learn as3 and really need some help with making an app. I am trying to make an input box that will take a number from a user, then return text information stored in an xml file so the user can read it. I have added an input box but from there i am lost as to how to do all this. I have accessed xml and been able to trace it, so i have some understanding of how that works. But how do i use the number that the user has inputted, and how do i display the information to the user within an app/sfw file? Im sure this is quite basic but i really am struggling! Any help fully appreciated here Alan
Try this: xbutton.addEventListener(MouseEvent.CLICK, buttonPressedFunction); function buttonPressedFunction(e:MouseEvent):void{ trace("Here it is: " + xinput.text); } Code (markup): where xbutton is the name of the button instance and xinput is the name of the text input instance. I hope it helps!