zoukankan
html css js c++ java
Flex 弹出窗口的例子
<?
xml version="1.0" encoding="utf-8"
?>
<
mx:TitleWindow
xmlns:mx
="http://www.adobe.com/2006/mxml"
layout
="absolute"
width
="310"
height
="184"
title
="Login"
cornerRadius
="3"
showCloseButton
="true"
close
="Close()"
creationComplete
="Init()"
>
<
mx:Script
>
<![CDATA[
import mx.managers.PopUpManager;
import mx.containers.TitleWindow;
import flash.events.*;
import mx.managers.PopUpManager;
import mx.controls.Button;
import mx.core.IFlexDisplayObject;
public static var login:Login = new Login();
public static function ShowDialog(parent:DisplayObject):void {
PopUpManager.addPopUp(login, parent, true);
}
private function Init():void{
this.x = this.parent.width / 2 - this.width / 2 ;
this.y = this.parent.height / 2 - this.height / 2;
}
private function Close():void{
PopUpManager.removePopUp(this);
}
]]>
</
mx:Script
>
<
mx:Label
x
="10"
y
="38"
text
="User Name"
/>
<
mx:Label
x
="10"
y
="64"
text
="Password"
/>
<
mx:TextInput
x
="87"
y
="36"
/>
<
mx:TextInput
x
="87"
y
="62"
/>
<
mx:Label
x
="10"
y
="10"
text
="Please input your user name and password"
/>
<
mx:ControlBar
height
="40"
y
="114"
>
<
mx:Spacer
width
="100%"
/>
<
mx:Button
label
="Login"
/>
<
mx:Button
label
="Cancel"
click
="PopUpManager.removePopUp(this);"
/>
</
mx:ControlBar
>
</
mx:TitleWindow
>
调用 Login.ShowDialog(this);
查看全文
相关阅读:
LoadRunner脚本关联动态数据的最简单方法
LoadRunner 检查点函数总结
算法(一)时间复杂度
JAVA虚拟机总结
java8中Lambda表达式和Stream API
算法总结
listview 异步加载图片并防止错位
Java设计模式菜鸟系列(一)策略模式建模与实现
Python基础--webbrowser
Shiro学习(22)集成验证码
原文地址:https://www.cnblogs.com/mobile/p/476836.html
最新文章
作为华人首富,李嘉诚为什么负债率只有2.7%,只因他坚持一个理念
是什么让并未受到很多专业教育的李嘉诚创造了今天的商业奇迹?
Xamarin iOS教程之页面控件
『干货』分享你最喜欢的技巧和提示(Xcode,objective-c,swift,c...等等)
分布式数据库集群中间件
安卓系统下的多线程断点下载实现
2.缓存机制
Unity3d的批渲染 batch rendering
cc2540 usbdongle 安装驱动失败的终极解决方法 【原创,多图】
自然语言处理中的Attention Model:是什么及为什么
热门文章
解决华为手机不出现logcat日志的问题
纯CSS实现移动端常见布局——高度和宽度挂钩的秘密
【VMware虚拟化解决方案】配置和部署VMware ESXi5.5
IP欺骗:要虚拟很多IP的情况:在一台机上虚拟的IP跨网段的处理,可通过在服务器端添加路由来实现
启动ip wizard时报the ip wizard does not support dhcp
性能测试中设置思考时间的作用
LoadRunner常见问题整理
LR基础学习_脚本信息函数
关于LoadRunner的迭代
Loadrunner脚本回放 场景运行过程中常见错误分析
Copyright © 2011-2022 走看看