Modular Debugging

yariv.gilad's Avatar


13 Oct, 2011 11:31 AM

first time here
love the framework!
trying out the Modular utility for a big project I'm building
I wired everything together, but messages from the Shell doesn't seem to reach a loaded module
(it's actually an application project swf loaded via spark swfLoader...) I made sure like 10 times everything is in place
I use Module contexts & Module Mediators
I use viewMap.mapType(IModuleA) on the shell's context and use Interfaces for the modules which extend IModule
I have the Modules implement those interfaces and use:

protected var context:IModuleContext;

[Inject] public function set parentInjector(value:IInjector):void

context = new ModuleA_Context(this,true,value);


public function dispose():void

context = null;


I made sure Injection arguments are define on my Flex 4.5 project, both on the shell and the module
I use - dispatchToModules(myEvent) on the shell,
and - addModuleListener(event_string,handler_function,event_type_class) on the module application mediator

I test to see if my Module type (interface) was mapped using - viewMap.hasType(IHomepage);
for some reason on the shell startup it returns true
but on the loaded application context startup method, it returns false
so there is no communication going on between the shell and the loaded application
can you please advice?
did I miss anything on my check list?


  1. 1 Posted by Pierre Laveklin... on 13 Oct, 2011 11:50 AM

    Pierre Laveklint's Avatar


    Can you try mapping the actual module and not the module interface?

    viewMap.mapType( ModuleA );

    I might have gone wrong about it myself but I've always mapped the module and not an interface for modular stuff.

    Besides that, from what you posted, it looks solid...

  2. Ondina D.F. closed this discussion on 08 Dec, 2011 12:24 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac