Hi
I am having problems with Flash and AS3 and I hope someone can help me out here.
Here is my test code :
var htmlTextData:String = "<body><h1>Lorem</h1> ipsum dolor <em>sit</em> amet,\nconsetetur <h2>sadipscing</h2> elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</body>"
var myCSS:StyleSheet = new StyleSheet();
myCSS.setStyle("h1", {fontSize:'25',color:'#000000'});
myCSS.setStyle("h2", {fontSize:'19',color:'#000000'});
myCSS.setStyle("b", {fontSize:'25', fontWeight:'bold'});
myCSS.setStyle("em", {fontSize:'25', fontWeight:'bold'});
var myTextField:TextField = new TextField();
myTextField.htmlText = htmlTextData;
myTextField.styleSheet = myCSS;
Problem #1 - Flash ignores all <p>
or <br />
but it still acknowledges \n
?
Problem #2 - I somehow want that one word bigger in the floating text, but after every tag flash makes automatically a break ??!
Hope someone can help me out here.
Thanks