flex 3.0 正式版 全屏代码

转载 2011年01月13日 12:18:00

<?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 source framework
for building rich Internet applications that get delivered via the
Flash Player or to desktops via Adobe AIR.

Learn more about Flex at http://flex.org
// -->

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!--  BEGIN Browser History required section -->
<link rel="stylesheet" type="text/css" href="history/history.css" />
<!--  END Browser History required section -->

<title>${title}</title>
<script src="AC_OETags.js" language="javascript"></script>

<!--  BEGIN Browser History required section -->
<script src="history/history.js" language="javascript"></script>
<!--  END Browser History required section -->

<style>
body { margin: 0px; overflow:hidden }
</style>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = ${version_major};
// Minor version of Flash required
var requiredMinorVersion = ${version_minor};
// Minor version of Flash required
var requiredRevision = ${version_revision};
// -----------------------------------------------------------------------------
// -->
</script>
</head>

<body scroll="no">
<script language="JavaScript" type="text/javascript">
<!--
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6, 0, 65);

// Version check based upon the values defined in globals
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

if ( hasProductInstall && !hasRequestedVersion ) {
 // DO NOT MODIFY THE FOLLOWING FOUR LINES
 // Location visited after installation is complete if installation is required
 var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
 var MMredirectURL = window.location;
    document.title = document.title.slice(0, 47) + " - Flash Player Installation";
    var MMdoctitle = document.title;

 AC_FL_RunContent(
  "src", "playerProductInstall",
  "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
  "width", "${width}",
  "height", "${height}",
  "align", "middle",
  "id", "${application}",
  "quality", "high",
  "bgcolor", "${bgcolor}",
  "name", "${application}",
  
  "allowFullScreen","true",
  
  "type", "application/x-shockwave-flash",
  "pluginspage", "http://www.adobe.com/go/getflashplayer"
 );
} else if (hasRequestedVersion) {
 // if we've detected an acceptable version
 // embed the Flash Content SWF when all tests are passed
 AC_FL_RunContent(
   "src", "${swf}",
   "width", "${width}",
   "height", "${height}",
   "align", "middle",
   "id", "${application}",
   "quality", "high",
   "bgcolor", "${bgcolor}",
   "name", "${application}",
  
   "allowFullScreen","true",
   
   "type", "application/x-shockwave-flash",
   "pluginspage", "http://www.adobe.com/go/getflashplayer"
 );
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = 'Alternate HTML content should be placed here. '
   + 'This content requires the Adobe Flash Player. '
    + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
    document.write(alternateContent);  // insert non-flash content
  }
// -->
</script>
<noscript>
   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
   id="${application}" width="${width}" height="${height}"
   codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
   <param name="movie" value="${swf}.swf" />
   <param name="quality" value="high" />
   <param name="bgcolor" value="${bgcolor}" />
 
   <param name="allowFullScreen" value="true" />
   <embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
    width="${width}" height="${height}" name="${application}" align="middle"
    play="true"
    loop="false"
    quality="high"
   
    allowFullScreen="true"
    
    type="application/x-shockwave-flash"
    pluginspage="http://www.adobe.com/go/getflashplayer">
   </embed>
 </object>
</noscript>
</body>
</html>

arcgis flex api 3.0 官方正式版

  • 2012年06月14日 10:33
  • 287KB
  • 下载

[Adobe开发者中心]一周学习Flex4视频中文版(正式版)

http://www.riameeting.com/flex4video[Adobe开发者中心]一周学习Flex4视频中文版(正式版) Flash Builder4[中文翻译](Adobe官...

[Adobe开发者中心]一周学习Flex4视频中文版(正式版)

http://www.riameeting.com/flex4video[Adobe开发者中心]一周学习Flex4视频中文版(正式版) Flash Builder4[中文翻译](Adobe官...

Android Studio更新,3.0正式版来了!

1.打开settings》system settings》updates,点击右边check now 2.选择update and restart 3.然后开始下载 4.重新打...
  • yechaoa
  • yechaoa
  • 2017年10月26日 10:49
  • 1209

cocos2d-x 3.0正式版及android环境搭建详细教程

今天cocos2d-x 3.0正式版终于发布了,下午特地下载了来尝尝鲜,废话不多说了。3.0正式版的环境搭建和之前的RC版其实是一样的,太多的教程也写了如何搭建,今天来写写我自己是如何来搭建的。 我...

WIN8+VS2012+cocos2dx3.0正式版之新建项目和生成apk文件

官方参考地址:http://www.cocos2d-x.org/wiki/How_to_run_cpp-tests_on_Windows 配置huan'jin

Cocos2d-x 3.0正式版及android环境搭建详细教程

今天cocos2d-x 3.0正式版终于发布了,下午特地下载了来尝尝鲜,废话不多说了。3.0正式版的环境搭建和之前的RC版其实是一样的,太多的教程也写了如何搭建,今天来写写我自己是如何来搭建的。 我...

MSNLite v3.0正式版

安装版:http://www.hada.me/download/msnlite-setup-3.0.0.4026.exe绿色版:http://www.hada.me/download/msnlite_...
  • tanaya
  • tanaya
  • 2012年01月15日 22:26
  • 1429

[终结] T00ls Lpk Sethc v3.0 正式版

博客距离beta版迟发了一天,昨天beta版已经在土司发了..不过5jb的税啊~好多人买不起 今天一开博客发现好多朋友的生日祝福,非常的开心!! 这次正式版本也算是一个终结了,最后一个下载者功能...
  • s98
  • s98
  • 2012年01月08日 18:50
  • 855
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:flex 3.0 正式版 全屏代码
举报原因:
原因补充:

(最多只允许输入30个字)