7 Replies Latest reply on Oct 26, 2010 12:16 PM by kglad

    Dynamic Text field changes colors but bullets don't for html text.


      I'm trying to use a dynamic text field to pull in html text that contains a bulleted list. Easy enough, that works. But the bullets dont take on the color assigned to the field. I've tried putting it in the html text and also using NewTextFormat and neither work. Can someone help me. This should be a simple fix, but I can't find it... I just want my text and bullets to both be white.


      Simple code below. Using html text inside the flash document and having a dynamic field on the screen named txt. Code should turn text and bullets green, but it doesn't work, only text turns green


      this.txt.html = true;

      var my_fmt:TextFormat = new TextFormat();
      my_fmt.color = 0x00FF00; // hex value for green

      this.txt.htmlText = "<P> This is the first paragraph</P><BR><UL><LI>Bullet 1</LI><LI><BR>Bullet 2</LI><LI><BR>Bullet 3</LI><LI><BR>Bullet 4</LI><LI><BR>Bullet 5</LI></UL>";


      Thanks for any help you can give me.