<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-167  評論-65  文章-0  trackbacks-0
     1,修改html-template下的index.template.html文件增加四行

      1<!-- saved from url=(0014)about:internet -->  
      2<html lang="en">  
      3  
      4<!--    
      5Smart developers always View Source.    
      6  
      7This application was built using Adobe Flex, an open source framework   
      8for building rich Internet applications that get delivered via the   
      9Flash Player or to desktops via Adobe AIR.    
     10  
     11Learn more about Flex at http://flex.org    
     12// -->  
     13  
     14<head>  
     15<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
     16  
     17<!--  BEGIN Browser History required section -->  
     18<link rel="stylesheet" type="text/css" href="history/history.css" mce_href="history/history.css" />  
     19<!--  END Browser History required section -->  
     20  
     21<title>${title}</title>  
     22<mce:script src="AC_OETags.js" mce_src="AC_OETags.js" language="javascript"></mce:script>  
     23  
     24<!--  BEGIN Browser History required section -->  
     25<mce:script src="history/history.js" mce_src="history/history.js" language="javascript"></mce:script>  
     26<!--  END Browser History required section -->  
     27  
     28<mce:style><!--  
     29body { margin: 0px; overflow:hidden }  
     30--></mce:style><style mce_bogus="1">body { margin: 0px; overflow:hidden }</style>  
     31<mce:script language="JavaScript" type="text/javascript"><!--   
     32// -----------------------------------------------------------------------------   
     33// Globals   
     34// Major version of Flash required   
     35var requiredMajorVersion = ${version_major};   
     36// Minor version of Flash required   
     37var requiredMinorVersion = ${version_minor};   
     38// Minor version of Flash required   
     39var requiredRevision = ${version_revision};   
     40// -----------------------------------------------------------------------------   
     41// --></mce:script>  
     42</head>  
     43  
     44<body scroll="no">  
     45<mce:script language="JavaScript" type="text/javascript"><!--   
     46// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)   
     47var hasProductInstall = DetectFlashVer(6, 0, 65);   
     48  
     49// Version check based upon the values defined in globals   
     50var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);   
     51  
     52if ( hasProductInstall && !hasRequestedVersion ) {   
     53    // DO NOT MODIFY THE FOLLOWING FOUR LINES   
     54    // Location visited after installation is complete if installation is required   
     55    var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";   
     56    var MMredirectURL = window.location;   
     57    documentdocument.title = document.title.slice(0, 47) + " - Flash Player Installation";   
     58    var MMdoctitle = document.title;   
     59  
     60    AC_FL_RunContent(   
     61        "src", "playerProductInstall",   
     62        "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",   
     63        "width", "${width}",   
     64        "height", "${height}",   
     65        "align", "middle",   
     66        "id", "${application}",   
     67        "quality", "high",   
     68        "bgcolor", "${bgcolor}",   
     69        "name", "${application}",   
     70        "allowScriptAccess","sameDomain",   
     71        "allowFullScreen","true",//增加的行   
     72        "type", "application/x-shockwave-flash",   
     73        "pluginspage", "http://www.adobe.com/go/getflashplayer"   
     74    );   
     75} else if (hasRequestedVersion) {   
     76    // if we've detected an acceptable version   
     77    // embed the Flash Content SWF when all tests are passed   
     78    AC_FL_RunContent(   
     79            "src", "${swf}",   
     80            "width", "${width}",   
     81            "height", "${height}",   
     82            "align", "middle",   
     83            "id", "${application}",   
     84            "quality", "high",   
     85            "bgcolor", "${bgcolor}",   
     86            "name", "${application}",   
     87            "allowScriptAccess","sameDomain",   
     88            "allowFullScreen","true",//增加的行   
     89            "type", "application/x-shockwave-flash",   
     90            "pluginspage", "http://www.adobe.com/go/getflashplayer"   
     91    );   
     92  } else {  // flash is too old or we can't detect the plugin   
     93    var alternateContent = 'Alternate HTML content should be placed here. '  
     94    + 'This content requires the Adobe Flash Player. '   
     95    + '<a ;   
     96    document.write(alternateContent);  // insert non-flash content   
     97  }   
     98// --></mce:script>  
     99<noscript>  
    100    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  
    101            id="${application}" width="${width}" height="${height}"  
    102            codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">  
    103            <param name="movie" value="${swf}.swf" />  
    104            <param name="quality" value="high" />  
    105            <param name="bgcolor" value="${bgcolor}" />  
    106            <param name="allowScriptAccess" value="sameDomain" />  
    107            <param name="allowFullScreen" value="true" />//增加的行   
    108            <embed src="${swf}.swf" mce_src="${swf}.swf" quality="high" bgcolor="${bgcolor}"  
    109                width="${width}" height="${height}" name="${application}" align="middle"  
    110                play="true"  
    111                loop="false"  
    112                quality="high"  
    113                allowScriptAccess="sameDomain"  
    114                allowFullScreen="true"//增加的行   
    115                type="application/x-shockwave-flash"  
    116                pluginspage="http://www.adobe.com/go/getflashplayer">  
    117            </embed>  
    118    </object>  
    119</noscript>  
    120</body>  
    121</html>  

     

    上述文件增加了四行見我文中有提示

    2,Mxml文件:

    假如一個button按鈕

     

    1<mx:Button  id="fullscreenbtn" x="931" y="0" label="全屏" cornerRadius="10" fillAlphas="[1.0, 1.0]" fillColors="[#A6F29C, #A6F29C]"  click="this.fullScreen()"/>  
    2

    as代碼:
    public function fullScreen():void{//全屏   
                  stage.displayState = (stage.displayState ==   
                  StageDisplayState.NORMAL
    ?StageDisplayState.FULL_SCREEN:StageDisplayState.NORMAL);   
                  
    if(this.stage.displayState==StageDisplayState.FULL_SCREEN){   
                     
    this.fullscreenbtn.label="返回";   
                  }
    else{   
                    
    this.fullscreenbtn.label="全屏";   
                  }
       
                    
            }
       
              




    write by feng
    posted on 2009-03-02 18:57 fl1429 閱讀(7334) 評論(2)  編輯  收藏 所屬分類: Flash/Flex/ActionScript

    評論:
    # re: Flex 全屏顯示方法 2012-09-11 12:20 | sss
    public function fullScreen():void{//全屏
    stage.displayState = (stage.displayState ==
    StageDisplayState.NORMAL?StageDisplayState.FULL_SCREEN:StageDisplayState.NORMAL);
    if(this.stage.displayState==StageDisplayState.FULL_SCREEN){
    this.fullscreenbtn.label="返回";
    }else{
    this.fullscreenbtn.label="全屏";
    }

    }
      回復(fù)  更多評論
      
    # re: Flex 全屏顯示方法 2012-11-23 11:15 | 迷茫小書童
    如果我這個flex文件通過iframe嵌入到HMTL中我應(yīng)該如何實(shí)現(xiàn)點(diǎn)擊flex文件而全屏。  回復(fù)  更多評論
      

    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導(dǎo)航:
     
    已訪問數(shù):
    free counters
    主站蜘蛛池模板: 亚洲国产精品国自产电影| 免费一级毛片无毒不卡| 亚洲精品无码久久久久久久| 久久亚洲熟女cc98cm| 免费人成视频在线观看不卡| 国产成人免费爽爽爽视频 | 四虎永久在线观看免费网站网址 | 亚洲av高清在线观看一区二区| 黄色成人免费网站| 特级精品毛片免费观看| 特级毛片aaaa免费观看| 亚洲人av高清无码| 亚洲AV无码乱码在线观看代蜜桃| 亚洲AV乱码久久精品蜜桃| 亚洲毛片av日韩av无码| 国产免费直播在线观看视频| 成年人免费网站在线观看| 国产高清免费视频| 久久免费看黄a级毛片| 日韩精品无码一区二区三区免费| 国产在线观看xxxx免费| 国产区在线免费观看| 国产精品九九久久免费视频| 免费人成大片在线观看播放| 老司机午夜精品视频在线观看免费| 亚洲欧美综合精品成人导航| 国产午夜亚洲精品| 亚洲色偷偷偷综合网| 亚洲日韩一区二区三区| 亚洲色偷偷偷综合网| 亚洲av成人一区二区三区在线播放 | 亚洲第一页在线视频| 精品亚洲A∨无码一区二区三区| 亚洲精品无码永久在线观看你懂的| 亚洲免费日韩无码系列 | 亚欧乱色国产精品免费视频| 一级大黄美女免费播放| 插鸡网站在线播放免费观看| 中文字幕a∨在线乱码免费看| 中文无码日韩欧免费视频| 十八禁在线观看视频播放免费|