A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: next line in a text box???

  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    83

    next line in a text box???

    im trying to make a form that converts 4 input text boxes
    into one text box called message.
    i cant figure out how to make it go to the next line..

    example:
    a person will fill out there info name,lastname,email.
    The var message ends up looking like this:
    TomJacksonTJ@whatever.com
    I want it to look like this:
    Tom
    Jackson
    TJ@whatever.com

    This is what i have so far..

    on (release) {
    message = txt1+txt2+txt3+txt4;
    }

  2. #2
    ActionScript Insomniac
    Join Date
    Jan 2003
    Location
    43d03.21'N, 89d23.65'W
    Posts
    1,173
    Insert newline characters:
    Code:
    message = txt1 + "\n" + txt2 + "\n" + txt3  "\n" + txt4;
    Unless otherwise specified, all code goes in Frame 1 of main timeline. FlashGizmo.com

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