Dynamic text box with html problem!

_root.createTextField(“mainTitle”,10,320,40,200,200);
mainTitle.html=true;
mainTitle.autoSize=true;
mainTitle.border=true;
mainTitle.multiline=true;
mainTitle.wordWrap=true;
mainTitle.background=true;
mainTitle.backgroundColor=0x333310;
mainTitle.variable=“firstTitle”;
//Create a new text format to apply to mainTitle
myTextFormat=new TextFormat();
myTextFormat.font=“Arial”;
myTextFormat.align=“right”;
myTextFormat.size=19;
myTextFormat.color=0xFFFFFF;
mainTitle.setNewTextFormat(myTextFormat);
firstTitle="<B>Ahhh</B> am gettinglost in ActionScript!";

If i test the movie with this code exactly the mytextFormat doesn’t affect the variable firstTitle and i get a default font with the <B> affecting the “Ahhh”.
When i remove the 2nd line of my code which sets my dynamic textBox to accept html tags the TextFormat works but off course i get the <B> and </B> as well since i removed the html thing.

My question is why? It seems i can’t use html with textFormat at the same time :frowning:

Am sure i can i must have made a very stupid and obvious mistake.Can anyone help??

Thanks.