I don't think that's a puremvc issue.
It rather has something to do with the execution order of AS3 code in general.
private function superMediator():void{
mediatorA();
mediatorB("b1"); //3
}
private function mediatorA():void{
trace("mA "); //1
mediatorB("b2");
}
private function mediatorB(s:String):void{
trace("mB "+s); //2
}
The trace should give you this:
mA
mB b2
mB b1
which is perfectly normal.
If Notification were AS3 Events you could set the priority parameter to change the order of execution.
Essential ActionScript 3.0
Colin Moock
By default, when multiple event listeners are registered for a single event type with a
given object, those listeners are triggered in the order in which they registered
...
To alter the default order in which event listeners are triggered, we can use the
addEventListener( ) method’s priority parameter, shown in the following generic
code:
addEventListener(type, listener, useCapture, priority, useWeakReference)
The priority parameter is an integer indicating the order in which the event listener
being registered should be triggered, relative to other listeners registered for the same
event with the same object. Listeners registered with a higher priority are triggered
before listeners registered with a lower priority.
For example, a listener registered
with priority 3 will be triggered before a listener registered with priority 2. When
two listeners are registered with the same priority, they are executed in the order in
which they were registered. When priority is not specified, it defaults to 0.
But Notifications in puremvc aren't Events.
Let's see what the puremvc experts will say about this. :)
Ondina