That's one way. Otherwise, you can do it inline with the list of supported
HTML tags.

I updated the page on htmlText with some examples and additional
information. You can see it here:

http://livedocs.macromedia.com/flex/15/flex_docs_en/00000156.htm

Hth,
mh

________________________________

From: James Ward [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 02, 2005 4:07 PM
To: [email protected]
Subject: Re: [flexcoders] htmlText and styles


Replying to myself... Bad form... Sorry.

Doing this:
var myStyleSheet = new TextField.StyleSheet();
myStyleSheet.load("assets/styles.css");
details.styleSheet = myStyleSheet;
details.htmlText = "<span class='test'>test</span>";

works, but isn't pretty. Let me know if there is a better way.

Thanks.

-James


On Wed, 2005-02-02 at 13:11 -0700, James Ward wrote:
> Has anyone successfully applied a style to a Label or Text with
> htmlText? I tried <span class='mystyle'> But that doesn't seem
to
> work. Thanks.
> 
> -James
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 




________________________________

Yahoo! Groups Links


*       To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

*       To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> . 






Reply via email to