Oct 30th, 2009, 06:08 PM
Using the LocalizationStageProcessor for state changes
While testing out the LocalizationStageProcessor, I was able to get the correct locale values out of the resource bundle and applied to the components on the stage. I ran into an issue when adding items via a state change (i.e. <mx:AddChild relativeTo="xyz"> <mx:Label ... /> </mx:AddChild>) which looks like it doesn’t fire off the Event.ADDED event so the locales are not applied.
Is it possible/correct to use the LocalizationStageProcessor when using addchild during a state change?
Thanks in advance,
Nov 2nd, 2009, 03:08 AM
seems to be working fine
I just did a little test with a state change (I added this to the sample application in the SVN trunk as well now, as a proof of concept) and all was working as usual.
So, I suspect something else is wrong in your code, are you sure the id of the label you're adding is known by the resourceManager.
So in other words, if your label has an id of 'mylabel' is there a resource string present with the name 'mylabel_text'?