A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Interactive Text Box

  1. #1
    Member
    Join Date
    Feb 2006
    Posts
    30

    Interactive Text Box

    looking for help with my flash - I want to have an input text box where you can type in your name which can then be displayed on screen? is this possible to do in flash?

  2. #2
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834

    Flash 8 needed.

    Try this.
    Last edited by swak; 10-08-2007 at 07:42 AM.
    .

  3. #3
    Member
    Join Date
    Feb 2006
    Posts
    30
    sorry - tried to open the file but it wont open - Im using flash mx on a pc - is that why maybe?

  4. #4
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    Ok, make two text boxes. The first text box for input you make it into "Input Text" and name it input. For the second text box for output you make it into "Dynamic Text" and name it Output. Then add this code to the main timeline.
    Code:
    onEnterFrame = function(){
    	Output.text = input.text;
    }
    Picts show making of text boxes.
    Last edited by swak; 10-08-2007 at 07:42 AM.
    .

  5. #5
    Member
    Join Date
    Feb 2006
    Posts
    30
    OMG - that is brilliant! Thanks so much for your help.

  6. #6
    Member
    Join Date
    Feb 2006
    Posts
    30
    sorry - bit of a random question but is there anyway I can make the background of the output box invisible so you can only see the text and not the white box?

  7. #7
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    yeah, just change the font color. Same bar that you choose dynamic text and stuff but to the right. It would be the box.
    .

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