i think im having a misconception here, the purpose of the
command mapped to the signal is to run the function override which
adds listeners to the signal is this correct?
and in my command i have to inject my model and get the parameters
sorry but i think you misunderstood: the SignalCommandMap works with types
of Signal that you create that you then map as singletons in your context.
So instead of AppSignals you would have a class, MenuClicked, which extends
Signal with an argument of type MenuVO.
in your menu mediator:
var menuClicked : MenuClicked;
and when you handle a click from your menu: menuClicked.dispatch( menuVO )
this will execute your MenuClickCommand, which will have menuVO injected
into it if required, or you can inject the same signal in the mediators of
other interested views and handle dispatched directly. You are not calling
mediator listeners, they are all listening to the same single instance of
your MenuClicked signal.
as mentioned in other posts, this approach can end up with a spiralling
amount of Signal classes that become overwhelming, but it has it's uses.