FullScreen.mxml ======================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- AIR 1.5에서 풀스크린을 띠우면 HTML에 로드된 swf는 보이지 않는다.
따라서 showFlexChrome="false" systemChrome="none" type="lightweight" 속성을
가진 윈도우를 띠운다.-->
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
applicationComplete="init()">
<mx:Script>
<![CDATA[
import com.withflex.window.FullScreenWindow;
private function init():void
{
var window :FullScreenWindow = new FullScreenWindow();
window.open();
this.close();
}
]]>
</mx:Script>
<mx:HTML id="html" height="100%" width="100%"/>
</mx:WindowedApplication>
FullScreenWindow.mxml =================================================
<?xml version="1.0" encoding="utf-8"?>
<mx:Window xmlns:mx="http://www.adobe.com/2006/mxml"
showFlexChrome="false" systemChrome="none" type="lightweight"
creationComplete="creationCompleteHandler();">
<mx:Script>
<![CDATA[
import mx.controls.HTML;
private var html:HTML;
private function creationCompleteHandler():void
{
nativeWindow.x = 0;
nativeWindow.y = 0;
nativeWindow.width = Capabilities.screenResolutionX;
nativeWindow.height = Capabilities.screenResolutionY;
html = new HTML();
html.width = nativeWindow.width;
html.height = nativeWindow.height;
html.location="http://www.naver.com";
addChild(html);
}
]]>
</mx:Script>
</mx:Window>