<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" viewSourceURL="srcview/index.html"> <mx:Button id="fullScreenButton" x="0" y="{Application.application.screen.height / 2 - fullScreenButton.height / 2}" width="{Application.application.screen.width}" height="500" label="Go Full Screen!" click="{fullScreenRoutine()}" /> <mx:DateChooser id="theDateChooser" width="400" /> <mx:ComboBox width="100%" height="100" bottom="0"/> <mx:Script> <![CDATA[ import com.appdivision.util.fullscreen.FullScreenUtil; private function fullScreenRoutine():void{ if(FullScreenUtil.isFullScreen){ fullScreenButton.label = 'Go Full Screen!'; FullScreenUtil.exitFullScreen(); }else{ fullScreenButton.label = 'Exit Full Screen!'; FullScreenUtil.goFullScreen(); FullScreenUtil.addChild(fullScreenButton, true, true, true); FullScreenUtil.addChild(theDateChooser, true, false, false, -1, -1, -1, 100); } } ]]> </mx:Script> </mx:Application>