Event triggered when mediatorMap is "ready" ?
Hi all,
In my application, I have my main UI called "facade" which opens a bunch (2, actually) of popups I have to mediate manually (as I'm using the flex PopupManager), so here is what I do, in my "FacadeMediator" class :
override public function onRegister() : void
{ // .... var map : MapScreen = new MapScreen();
PopUpManager.addPopUp(map, facade);
mediatorMap.createMediator(map); }
The problem is, my map is not mediated properly because this
onRegister method is called BEFORE.
For now, I'm using a timer : waiting 2 seconds before I open my
popups, but that's kinda dirty IMHO.
Any other ideas?
Thanks!
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Shaun Smith on 20 Apr, 2010 10:30 AM
Hi Palleas,
This might be due to a feature whereby the Mediator for the contextView is created immediately (as soon as it is mapped). I would recommend doing the mapping for the contextView as the last step in your startup sequence (ie, after all Command, Service and Mediator mappings).
Let me know if this solves your issue.
Cheers,
3 Posted by Palleas on 20 Apr, 2010 12:29 PM
Yep, it works that's seems a lot more logical too :)
Thanks!
Stray closed this discussion on 11 Feb, 2011 11:39 PM.