tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/444-cant-seem-to-listen-for-fullscreeneventsRobotlegs: Discussion 2018-10-18T16:35:34Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/118274752011-12-02T01:06:00Z2011-12-02T01:13:27ZCan't seem to listen for FullScreenEvents<div><p>here is the code in my app mediator</p>
<p>`override public function onRegister():void</p>
<pre>
<code> {
super.onRegister();
trace("[AppMediator] - [onRegister] :: ");
eventMap.mapListener(view.stage, FullScreenEvent.FULL_SCREEN, onFullScreen);
eventMap.mapListener(view, MouseEvent.CLICK, onClick);
}
private function onClick(e:MouseEvent):void
{
trace("[AppMediator] - [onClick] :: ");
trace(view);
}
private function onFullScreen(e:FullScreenEvent):void
{
trace("[AppMediator] - [onFullScreen] :: ");
trace(e.fullScreen);
}</code>
</pre>
<p>`</p></div>kamcknigtag:robotlegs.tenderapp.com,2009-10-18:Comment/118274752011-12-02T01:40:55Z2011-12-02T01:40:55ZCan't seem to listen for FullScreenEvents<div><p>I've figured it out. It's because the stage during the
onRegister method is not the same stage property as when I'm
actually going into/leaving fullscreen since I'm moving the view
around to different windows in the AIR app</p></div>kamcknig