I'm trying to mediate the main application class ( the 'Document class' of a Flash *.fla project)
I have this on the Application Context startup():
... mediatorMap.mapView(MyApplication,MyApplicationMediator); mediatorMap.createMediator(contextView);
The MyApplicationMediator:
public class MyApplicationMediator extends Mediator {
[Inject]
public var view:MyApplication;
override public function onRegister():void {
trace("I am registered!");
}
So onRegister() gets called, but view is null. Also when I try to add the eventListeners I get a null reference error.