It IS possible.
You can define any CUSTOM tag instead of span:
//create a style
this.createTextField("my_txt", 1, 100, 100, 300, 100);
var my_style:TextField.StyleSheet = new TextField.StyleSheet();
my_style.parseCSS("redtext {color:#FF0000}");
my_txt.styleSheet = my_style;
my_txt.htmlText = "There can be <redtext>special</redtext> fragment in
text";
  
With external CSS it's exactly the same.


-- 
Best regards,
 Gregory_GOusable                        
================================
http://GOusable.com
Flash components development.
Usability services.


>Paul Steven wrote:
> 
> With regards your example Wade, putting all the font info with the text
> seems to go against the overwhelming purpose of CSS and how it has separated
> content from styling.
> 
> Hence I was thinking it may be possible to put some sort of css style type
> of thing in the XML file rather than the precise font sizes and details.
> 
> This is probably not possible but it would be nice if it is?
> 
> Thanks
> 
> Paul


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to