SystemManger registration problem with -isolate-styles=false
I am working on a modular application using a bunch of styles. I recently found that loading styles in the main application with isolate-styles set to true, would break the styleChain for the modules.
The workaround was to initiate an instance of StyleManager in the module, but that has now resulted in ActiveWindowManager not being registered with the system manager for the module, and as a result, PopupManager explodes on line 358:
var awm:IActiveWindowManager =
IActiveWindowManager(smp.getImplementation(
"mx.managers::IActiveWindowManager"));
if (window is IFocusManagerContainer)
{
if (IFocusManagerContainer(window).focusManager)
{
awm.
addFocusManager(IFocusManagerContainer(window));
}
because awm is null at this stage.
Does anyone have an idea for how to get this working? It seems the isolate-styles implementation is causing a world of pain in sdk 13099
Any takers?
