Why can't you use the same approach in the <mx:Script> of an MXML component? Gordon Smith Adobe Flex SDK Team
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of reflexactions Sent: Thursday, December 13, 2007 9:07 PM To: [email protected] Subject: [flexcoders] Defining a default value for a style in an mxml component If I define a style in an mx:metadata tag in an mxml component is there a simple way to set a default value for that style? If this were a code based component I would create a default factory in a static initialiser but for an mxml component is there an alternative? tks

