Well I know that I can subclass standard components but I was wondering if there was a way to do it with Flex classes.
I was wondering if there was a way for Flex to use system locals/user locals/Default and all flex classes that depends on localization would inherit it by default. Jo�o Fernandes --- In [email protected], Abdul Qabiz <[EMAIL PROTECTED]> wrote: > You can achieve this, if it's not already there. You can subclass DateField > and DateChooser component and add this functionality. > > Following is quick and dirty example to : > > > ##ExtendedDateFieldExample.mxml## > > <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" > xmlns:local="*"> > <local:DateFieldEx /> > </mx:Application> > > > ##DateFieldEx.as## > > import mx.controls.DateField; > > class DateFieldEx extends DateField > { > //default German month names... > private static var defaultMonthNames = > ["Januar","Februar","M�rz","April","Mai","Juni","Juli","August","September", > "Oktober","November","Dezember"] > > public function init():Void > { > super.init(); > monthNames = defaultMonthNames; > } > } > > > > > On similar lines you can think... > > Hope that helps.. > > -abdul > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of joao_m_fernandes > Sent: Friday, May 13, 2005 5:24 PM > To: [email protected] > Subject: [flexcoders] Date formating application wide > > Hi there, > > Is there a way to set default values other than English formating so > each component uses it instead of setting formatters everywhere. > > Example, If I have several DateFields and DateChoosers I want to be > able just to set in the main Application weekday names (or month > names) and those components use it as default. > > If I set <mx:DateField> automaticly it should use my definitions of > dayNames and monthNames without setting it directly in the component. > > Any Idea how I can achieve this? > > Thanks, > > Jo�o Fernandes > > > > > > Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

