zoukankan      html  css  js  c++  java
  • flex学习记录——打开新窗口

    打开一个新窗口:

    第一种方式:直接打开

    var requestURL:URLRequest =  new URLRequest("http://203.175.145.138/mayor/index.TJ?mayor=1");
    navigateToURL(requestURL, "_blank"); 

     第二种方式:触发函数打开:

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
        xmlns:page="pager.*" width="100%" height="100%" 
        paddingBottom="0" paddingLeft="0"
        paddingRight="0" paddingTop="0" 
        layout="absolute" verticalAlign="top"
        horizontalAlign="center"  
        pageTitle="打开新窗口"  
        creationComplete="treeData()">
        <mx:Style source="skins/blue/blue.css"/>
     
        <mx:Script>
            <![CDATA[
            
                private function treeData():void{ 
              if(...){
                deptbuttontype = true;
              }else { 
                 deptbuttontype = false;
                 }
              }
            private function loginSystem():void{
                  ExternalInterface.call('window.location',"./../jx.jsp");
            }
    private function closeSystem():void{

                  ExternalInterface.call('window.close()');
    }
    ]]
    > </mx:Script> <mx:Panel height="100%" width="100%" > <mx:Button id="button" width="55" height="25" label="打开" click="loginSystem()" visible="{deptbuttontype}/>
    <mx:Button width="55" height="25" label="关闭" click="closeSystem()"/> </mx:Panel> </mx:Application>
  • 相关阅读:
    2014年之新年新愿
    C#解析Xml的Dom和Sax方式性能分析
    WCF协议与绑定
    使用SqlServer数据批量插入
    跨站脚本攻击XSS
    疯狂的JSONP
    SQLiteOpenHelper
    Android常用的UI布局
    Android用户界面
    ListView
  • 原文地址:https://www.cnblogs.com/zhangchunxi/p/2771017.html
Copyright © 2011-2022 走看看