• 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>
  • 相关阅读:
    java注解
    Mac窗口管理管理软件SizeUp
    mac下8080端口到80端口的转发
    mac svn的替代品CornerStone
    模板模式讲解二
    数组和集合List的相互转化
    fastjson使用示例
    模板模式讲解一
    mybatis-generator-core自动生成do、mapping、dao 代码
    maven依赖传递关系
  • 原文地址:https://www.cnblogs.com/zhangchunxi/p/2771017.html
Copyright © 2020-2023  润新知