Centering multiline textfield

Hey

Ok yet another issue…

Trying to center a multiline textfield, meaning all the lines are centered.

var = “<p align=“center”>text1<br>text2</p>”

This actually center both lines, but the line that has the longest text is all blurred where as the other one is crisp clear.

Appearently you can type in the both lines manually and center it in TEXT PROPERTIES. Is there a way in action script (when not rendering HTML) to insert a text that spans on 2 lines, basicly like you can with HTML using the <br> tag??
Or is there a fix for the problem when using html render to make sure both lines are crisp clear??

Thanx

Hi Dane,

You want your multiline text to be center aligned without setting ur HTML property to TRUE, but then flash will not be able to render <p align… /> unless its property is set to TRUE. To get your text to the next line u can not use BR tag but u can use /n or newline tag.

I wonder why u dont want you set HTML property to true, since that will make your life much easier. Only u have to do is

myText.htmlText = “<p align=‘center’>hello<br>how are u</p>”;


aShIsH

the new line center things as I had it before, but the longest line is still blurred…
I’ll try the /n way and see if that is better.

Thanx man

btw. how would you use the “/n”??

I guess “hello1
hello1”…

But arg ran into the same problem, the longest line is all blurred… WEIRD…