That sounds like an interesting enhancement request to file at http://bugs.adobe.com/flex. Gordon Smith Adobe Flex SDK Team
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of reflexactions Sent: Thursday, December 13, 2007 10:17 PM To: [email protected] Subject: [flexcoders] Re: Defining a default value for a style in an mxml component I could I just thought that in the mxml would be some simpler way to do it.... Like it would be nice if you could but a default value on the style tag.... tks --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > 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:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of reflexactions > Sent: Thursday, December 13, 2007 9:07 PM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > 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 >

