This content has been marked as final. Show 6 replies
you can't use your keyboard's enter key to assign a line/paragraph break to a string. use \n or \r in your string.
I was hoping that wasn't the case but thanks for the response.
Just the thread I was looking for!
A couple of follow-up questions:
1. what is the difference between \n and \r?
2. are space necessary either side of the break for it to be recognised? (eg. "Here comes the new line \n This is a new line" as opposed to "Here comes the new line\nThis is a new line")
thanks as always
1. there's no difference within flash between \n (new line) and \r (carriage return). each actually performs one line feed and one carriage return (or one carraige retrun and one line feed).
2. no space is necessary. if you insert a space after either the space will appear in the next line.
Clear as a bell. Cheers!