Using two css classes for single textfield

Hi,
This is something related to applying the CSS bases stylesheet to the textfield.

Let’s say i have a css:

[AS]
.headerSize
{
font-size:20pt;
}
.msgSize
{
font-size:10pt;
}
.first
{
font-family:Trebuchet MS;
}
[/AS]

If I were to use this in html and apply the stylesheet of header text
it would be something like this
[AS]
<p class=“first headerSize”>This is header Text</p>
[/AS]

If I do the same thing in action script it fails to apply the stylesheet.
[AS]
myStyle_obj=new TextField.StyleSheet();
myStyle_obj.onLoad=function(succ)
{
if(succ)
{
_root.header_txt.styleSheet=this;
_root.header_txt.html=true;
_root.header_txt.htmlText="<p class=‘first headerSize’>Header Text</p>"
}
}
myStyle_obj.load(“mycss.css”);
[/AS]

Is there any other way to achieve this thing?

If any one has worked with css in Flash and encountered the same problem??

oh my God!!!

i think nobody has ever done this :x

Wait, so if you only use class=‘first’ or =‘header’ it works? You’re saying it only doesn’t work if you use both? If that’s the case, did you try just doing something like this:
<p class=‘first’><span class=‘header’>header text</span</p>
?

Whoa !!!

Well it works good and great.
But then it still requires two tags for using two tags.
If I had 4 classes then there will b 4 html tags?? Naaaaaaahhhh…

I think i can inherit the classes in css itself and then see.

Any way thanks for the initial help.