A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: new line characters

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    11

    Post

    Can anyone tell me what characters Flash uses in text to indicate a new line?

    I have an address input field which gets sent to a php script - which then generates email. When the email arrives, address are allonelineruntogther. I want to be able to use an ereg_replace() to search for the new line characters and substitue \n . . . but I don't know what to search for.

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    1,180
    Hi...
    Is this what your after?

    on (release) {
    output = "Hello"+newline+"thoseguys";
    }

    Good luck.

  3. #3
    Registered User
    Join Date
    Feb 2001
    Posts
    13,044
    Hi,

    replace all \r by \n in all multiline fields ...

    Musicman

  4. #4
    Junior Member
    Join Date
    Apr 2001
    Posts
    11
    that's it!

    thanks



    Originally posted by Musicman
    Hi,

    replace all \r by \n in all multiline fields ...

    Musicman

  5. #5
    you can also search for "some text" + chr(13) + "new line text"...

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