Subclass and override the dayNames setter.  Also check out resources and 
resourceManager.  I think that's what you really want.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
cristian.mrsystem
Sent: Thursday, November 15, 2007 11:56 PM
To: [email protected]
Subject: [flexcoders] Changing default components texts

 

Hi.

I'm using Flex 2.01, and I'm looking for something to change the values for all 
the 
components of the same kind, by declaring it only once in the application. For 
example:
I want to use my personal monthNames and dayNames for the component DateField, 
but I 
want to declare my values only once, and not every time I add a DateField 
component.

I got the idea when I saw that I could define the labels for the OK, Cancel, 
Yes and No buttons 
from Alert messages, by changing the value of variables in the main application 
like:
Alert.yesLabel = "Sí";
Alert.noLabel = "No";
Alert.cancelLabel = "Cancelar";
Alert.okLabel = "Aceptar";

Can I do something similar with other components? Where can I find the info 
about it?

Thank you very much

 

Reply via email to