Home » ActionScript 3.0, Flash CS4, Flex, XML

List tag( li ) not working in AS3!

30 August 2010 One Comment
Share on Facebook

I was loading the XML data from a XML file and displaying the list( li ) data in an HTML text but it displays as single bullet and remaining content below as single line.

To overcome the issue we need to add multiline property well before we set the HTML text in the TextField.

Solution Code:

var textField : TextField = new TextField();
textField.multiline = true;
textField.htmlText = String(itemObject.data);


We don't share your email anywhere, grab our rss via feedburner

One Comment »

  • Andreas said:

    thanks, this saved me some time of bugfinding :)

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.