Let me answer my own question : )
This code will transform the ".menu" css style to a TextFormat object :
var styleObj:Object = my_styleSheet.getStyle(".menu");
var styleFormat:TextFormat = my_styleSheet.transform(styleObj);
trace(styleFormat.font)
----- Original Message -----
From: "Patrick Matte" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Tuesday, October 18, 2005 11:20 PM
Subject: [Flashcoders] Stylesheet.transform
Hi, I'd like to use the TextFormat.getTextExtent() method but first i have
to transform my loaded CSS into a TextFomat.
Is there a way to transform a style from a css to a TextFormat object ?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders