As3 Bug? Newline Automatically Entered After Css Tag
I am rendering a TextField (Flash CS5) with the following css and html properties : css = 'a {font-weight: bold;} fu {color: #00A0A0;}' wordWrap = true multiline = true html = <
Solution 1:
The problem here is that htmlText
supports only a limited number of tags and attributes, and thus CSS support is frankly quite poor. So it is not a bug, but a known limitation...
My recommendation would be to use a span tag with a class attribute, like:
css = ".foo {color: #00A0A0;}"html = ""[...]the past centuries…
<span class=\"foo\">WE AIM TO CARRY ON WITH THE INNOVATION</span>"";
Post a Comment for "As3 Bug? Newline Automatically Entered After Css Tag"