Re: Improving @Resource MXML directive

2014-02-13 Thread Alex Harui
I would think the most efficient mechanism for supporting runtime locale changes would be to create a data class around the resourceManager something like this: Class ResourceModel extends EventDispatcher { Private var _myResourceName:String; [Bindable("localeChanged")] Pu

Improving @Resource MXML directive

2014-02-13 Thread Cosma Colanicchia
Just a random thought: I never used the @Resource directive, because it does not allow locale change at runtime, so I end up in lots of ugly text=“{resourceManager.getString(‘myBundleName’, ‘my.resource.name’)}” that does not help code readability. Maybe we could improve it? I’ll just throw some i