I'm quite new to PureMVC, having learnt other framework before, I'm quite excited to develop a mobile app using the new Flex Mobile (Flash Builder Burrito).
I understood that the View must not know or aware of the PureVMC apparatus going on and it should communicate to it's Mediator via Event. The only exception to this rule is the Root whereby it has to initiate the PureMVC apparatus by calling ApplicationFacade.getInstance().startup(this) and passing its reference.
In normal Flex app, I would do this to instantiate my View's mediator.
:
override public function onRegister():void { // Create and register Mediators // components that were instantiated by the mxml application facade.registerMediator( new SplashScreenMediator( app.splashScreen ) ); facade.registerMediator( new MainScreenMediator( app.mainScreen ) ); }
But with the new ViewNavigator in Flex Mobile, how do i go around this? and the navigation is handle by this object. And how do i get the View's reference into my Mediator?