I have a command,
FullScreenCommand, which requires two key elements in order to function; an event which has fired (I need to check it's type) and a reference to the application itself (so I can change the displayState of the stage).
I'm passing the event via the notification body, the reference to the application I'm obtaining within the command as follows;
var applicationMediator:ApplicationMediator = facade.retrieveMediator(ApplicationMediator.NAME) as ApplicationMediator;
var app:MyApp = applicationMediator.getViewComponent() as MyApp;
Does this fit with the PureMVC principles, or should I be passing both the event and app instance via the body of a custom notification?
Thanks