A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How do you get input text to be displayed on your screen without creating buttons?

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Location
    UK
    Posts
    3

    Unhappy How do you get input text to be displayed on your screen without creating buttons?

    I'm creating a quiz application using Flash CS3, but it's been such a long time since I've used ActionScript and I'm a little bit stuck.

    I've created an input text box in the first frame of my quiz program. A person will enter their name into this text box (which I've called "nameInput") and then click the next button to proceed through the quiz.

    However, when I get to the results page I cannot figure out how to get the input name to be displayed automatically in the dynamic text box (which is called "nameOutput") when the user enters the frame.

    Could someone help me out please?

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    give all textfields instance names (Var: is so out of date)

    when you click the button assign a variable -
    nameVar = nameInput.text;

    on the results page -
    nameOutput.text = nameVar;

  3. #3
    Junior Member
    Join Date
    Sep 2009
    Location
    UK
    Posts
    3
    That worked a treat! Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center