1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

REALLY need help with AS3!!!!!

Discussion in 'Programming' started by confusedone, Apr 10, 2012.

  1. #1
    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
     
    confusedone, Apr 10, 2012 IP
  2. GetConversion

    GetConversion Member

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #2
    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!
     
    GetConversion, Apr 16, 2012 IP