PDA

View Full Version : syntax for a new line in a text box


active
05-02-2001, 12:19 PM
Can anybody tell me what is the correct syntax if you want each text variable to read on a new line in the dynamic text box. EG

dynamicTextBox = textVariable1 + textVariable2 + textVariable3;

Cheers

Jesse
05-02-2001, 01:58 PM
a = "blah"
b = "clah"
text = a + "\n" + b

Cheers

Jesse

active
05-02-2001, 09:52 PM
thanks jesse

Cheers

Nyth
06-18-2006, 10:19 PM
i realise this is an OLD post, but this doesn't work for me.. I'm using Flash8.

I made a dynamic text box on the stage. I named it "box".

Here's the code i put on frame 1.

a="blah"
b="blah"
words=a+"/n"+b
this.box.text=words

here's what it displayed:

blah/nblah

oldnewbie
06-19-2006, 01:10 AM
Not words=a+"/n"+b;

But words=a+"\n"+b;

Nyth
06-19-2006, 03:14 AM
ahh, thanks! :o ...that was frustrating me so much...

~Nyth

oldnewbie
06-19-2006, 04:18 AM
;)

robertobradley70
12-22-2011, 07:38 PM
I don't know about this. but want to know the answer of this question.

[afz]snickelfitz
12-22-2011, 08:38 PM
"\n" creates a new line in the textfield.
Make sure your textfield is set to multiline.

Not sure what else there is to know.