import flash.text.StyleSheet;
var ss:StyleSheet = new StyleSheet();
ss.parseCSS("p{fontSize: 10; textIndent:50;}h1{fontSize:15;}");
styleMe.styleSheet = ss;
styleMe.htmlText = "<p>Title for my text</p> <p>This is my text with whom I am so proud and happy and this is my text which I am so proud and happy.</p>";
I just knocked up a very quick test for styling in a TextField using CSS, and as you can see from the result, the second paragraph is completely ignoring the textIndent value.
Anyone know why this might be. It’s super annoying. It doesn’t seem to make any difference if I use a h1 or a p for the title, the second paragraph still has a mind of it’s own when it comes to textIndent.