标签存档:flex全屏
flex 3 全屏代码
发表时间:10. 12月, 2009 作者:Freddie.
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”absolute”>
<mx:Script>
<![CDATA[
import flash.display.StageDisplayState;
private function fullScreen(event:MouseEvent):void{
if (stage.displayState == StageDisplayState.FULL_SCREEN)
{
mybtn.label = "全屏模式";
stage.displayState = StageDisplayState.NORMAL;
}
else
{
mybtn.label = "返回全屏";
stage.displayState = StageDisplayState.FULL_SCREEN;
}
}
]]>
</mx:Script>
<mx:Button x=”112″ y=”99″ label=”mybtn” id=”mybtn” click=”fullScreen(event)”/>
</mx:Application>
////////////////////////////////////////////////////////////////////////////
修改文件 html-template/index.template.html
<!– saved from url=(0014)about:internet –>
<html lang=”en”>
<!–
Smart developers always View Source.
This application was built using Adobe Flex, an open [...]

