views:

880

answers:

2

Hi,

I am using TextField in that Line break is not working
i given multiline property to true also. even though i am not getting line break.

how to do
using textfield in flash AS3.

Thanks in Advance

A: 

Hey!

add a \n to the text where you want a newline, should work!

Wayne Austin
no \n is also not working its showing \n itself..not recognizing as escape character.
vineth
thats because its /n not \n, sorry my bad :D
Wayne Austin
the /n is also not working but <br/> is working ,but there is lot of space in between line break ... is there any way to avoid that unwanted space..
vineth
i am assigning as htmlText..
vineth
+1  A: 

Add textFieldName.condenseWhite = true; textFieldName.multiline = true;

Firstpixel