"underline:true" isn't valid, unless you are building an anonymous object.
You can pass the values like this but they're not named. You have to pass the values in the order shown in the docs. It would have been a lot more useful if you could pass an object ... Derek Vadneau ----- Original Message ----- From: "Mendelsohn, Michael" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <[email protected]> Sent: Tuesday, January 03, 2006 8:39 AM Subject: [Flashcoders] TextFormat constructor Hi list... I thought you could instantiate a TextFormat object like this: var tf:TextFormat = new TextFormat(underline:true, color:0xFFFFFF); But that doesn't work as there's a compile error. Why? - MM _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

