place code like the following within your ApplicationMediator: protected function get app():ApplicationMXMLClass { return viewComponent as ApplicationMXMLClass }
where ApplicationMXMLClass is the name of your "root" class
place code like the following within your ApplicationMediator: protected function get app():ApplicationMXMLClass { return viewComponent as ApplicationMXMLClass }
where ApplicationMXMLClass is the name of your "root" class