The subject says it all, but i'm not sure if its possible. I tryed finding it in help but couldn't.
Actionscript 2.0 - add line break to string?
Eh...well I'm no actionscript guru, but in php it is as simple as:
Which in actionscript would look something like:
...tell me if it works...
| Code: |
| $string .= "\n"; |
Which in actionscript would look something like:
| Code: |
| string += "\n"; |
...tell me if it works...
nope. It didn't work.
var str = "Hello," + newline + "world"?
-- edit --
By the way: i think in Flash 4 you have to use
var str = "a" & "b"
instead of
var str = "a" + "b"
-- edit --
By the way: i think in Flash 4 you have to use
var str = "a" & "b"
instead of
var str = "a" + "b"
sweet that works. Thanks.
Also "/r" works.
Also "/r" works.
In AS try this
myString= "StringContent"+newline;
myString= "StringContent"+newline;
Related topics
