Dear all,
I am using the resourceManager to switch between languages in my flex app.
All labels (i.e. of buttons, textfields...) are bound to locale property
files, that they change immediately, when the user changes the language.
I have a toggleButtonBar in my app and want the labels of the buttons to
change as well. Therefore I use the BindableObjectClass, which extends
Object and has a bindable property "label". I use it like that:
<mx:ToggleButtonBar>
<mx:ArrayCollection>
<components:BindableObject
label="{resourceManager.getString(MY_BUNDLE, 'NAME_1')}"/>
<components:BindableObject
label="{resourceManager.getString(MY_BUNDLE, 'NAME_2')}"/>
</mx:ArrayCollection>
</mx:ToggleButtonBar >
The only problem I have is, that when I change the language, the
ToggleButtonBar disappears for a moment. It appears with the correct
language labels, when all other labels change language. I want the
ToggleButtonBar to remain on stage and just change the language. Does
anybody know another way to do it, that prevents the disappearing?
Thanks in advance, Christoph