<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
viewActivate="view1_viewActivateHandler(event)"
title="Full Screen">
<fx:Script>
<![CDATA[
import spark.events.ViewNavigatorEvent;
protected function view1_viewActivateHandler(event:ViewNavigatorEvent):void
{
if (stage.displayState == StageDisplayState.FULL_SCREEN_INTERACTIVE)
chk.selected = true;
}
protected function chk_changeHandler(event:Event):void
{
if (chk.selected)
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
else stage.displayState = StageDisplayState.NORMAL;
}
]]>
</fx:Script>
<s:CheckBox id="chk" label="Full Screen" change="chk_changeHandler(event)" horizontalCenter="0" verticalCenter="0"/>
</s:View>
Vitor Yudi Hansen