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??
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>”;