FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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
script backup database
Basic HTML Introduction
Header("Location: PROBLEM");
Executing a .sql file through PHP
Need script
how to connect them
An Example to mySQL class
Pixels
What's New in Pocket Internet Explorer
Html quize. way over
Untold XP secrets
Textbox - line break problem
some help with javascript please
Need Idea to create a website
Reply to topic    Frihost Forum Index -> Scripting -> Others

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