<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" viewSourceURL="srcview/index.html"> <mx:initialize><![CDATA[ systemManager.stage.addEventListener( FullScreenEvent.FULL_SCREEN, function(event: FullScreenEvent): void { fullScreen = event.fullScreen; } ); ]]></mx:initialize> <mx:Script><![CDATA[ private var _fullScreen: Boolean; [Bindable] public function get fullScreen(): Boolean { return _fullScreen; } public function set fullScreen(isFull:Boolean):void { _fullScreen = isFull; stage.displayState = (isFull) ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL; } ]]></mx:Script> <mx:CheckBox id="fs" label="Full Screen" click="fullScreen=event.target.selected" selected="{fullScreen}" horizontalCenter="0" verticalCenter="0"/> </mx:Application>