Take a look at a good write-up by Steve Brownlee...

http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator-
with-modules

With the added security restrictions... Your singleton implementation may
need to be hardened to prevent multiple instance... Etc. This example may
help as well.

http://www.quilix.com/node/5

Cheers,

Rick Winscot



On 8/15/09 12:11 PM, "Everson Alves" <[email protected]> wrote:

>  
>  
>  
> 
> Hello guys,
> 
> I'm facing a weird problem. I'm working with flex Modules that are tide mxml
> components . Using ModuleManager to load the modules. If I load using
> moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want
> to use the module as independent sub applications and they use the same class
> definitions that doens't play nice with singletons (ModelLocator) . When
> loading usingĀ  moduleInfo.load() expecting that it uses it's own
> ApplicationDomain it loads, dispatches  ModuleEvent.READY event but
> moduleEvent.module.factory.create() gives me null. I also tried
> moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but
> this case dispatches a  ModuleEvent.ERROR saying that file isn't a loadable
> module or something like that. An detail that might be important is that the
> module is marked to be optimized to my application in compilation.
> 
> thanks in advance.

Reply via email to