FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Actionscript 2.0 - add line break to string?

 


mothmann
The subject says it all, but i'm not sure if its possible. I tryed finding it in help but couldn't.
LukeakaDanish
Eh...well I'm no actionscript guru, but in php it is as simple as:
Code:
$string .= "\n";

Which in actionscript would look something like:
Code:
string += "\n";

...tell me if it works...
mothmann
nope. It didn't work.
MrBlueSky
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"
mothmann
sweet that works. Thanks.
Also "/r" works.
hiquality
In AS try this

myString= "StringContent"+newline;
Related topics

Cant access admin area after updateing to 2.0.15
Actionscript 2.0... for and if together = buggy
Flash ActionScript 2.0 Verical Animated Menu Problem
Google Upgrades its Desktop to 2.0
Hoe maak je een forum met phpBB 2.0 ???

GD 2.0 & TIFF
phpbb forum upgrade to phpBB 2.0.22.
Good Web 2.0 Graphic services:
Apache 2.0.59 and PHP5 are not friends...
Download IPB 2.0.4

Help me with MySQL Account Maintenance and phpBB 2.0.15 :((
phpBB [2.0.16] Released
phpBB 2.0.16 released
patch pour les phpbb 2.0.16 (non-officiel)
Anyone using PHPBB 2.0.17 and wanting to keep it compliant
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.