易截截图软件、单文件、免安装、纯绿色、仅160KB

Flex 写Cookie(类似Cookie)

登陆页面
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
 <![CDATA[
  import flash.net.navigateToURL;
 
  private function setCookie():void{
   if(txtUse.text == "admin" && txtPsw.text == "admin"){
    var mycookie:SharedObject =SharedObject.getLocal("MyCookie","/");
    mycookie.data.Name = txtUse.text;
    mycookie.data.Password = txtPsw.text;
    mycookie.flush();
    var Url:URLRequest = new URLRequest();
    Url.url = "http://localhost/Hello.swf";
    navigateToURL(Url,"_parent");
   }
  }
 
  private function getCookie():void{
   var mycookie:SharedObject =SharedObject.getLocal("MyCookie","/");
   lblUse.text = mycookie.data.Name;
   lblPsw.text = mycookie.data.Password;
  }
 
  private function init():void{
   var obj:SharedObject = SharedObject.getLocal("MyCookie","/");
   txtUse.text = obj.data.Name;
   txtPsw.text = obj.data.Password;
  }
 
 ]]>
</mx:Script>
 <mx:Label x="173" y="186" text="用户名:" width="135" height="28" fontSize="18"/>
 <mx:Label x="173" y="263" text="密码:" width="91" height="27" fontSize="18"/>
 <mx:TextInput x="316" y="184" width="171" id="txtUse" fontSize="18"/>
 <mx:TextInput x="316" y="258" width="171" id="txtPsw" fontSize="18" displayAsPassword="true"/>
 <mx:Button x="299" y="411" label="Submit" width="72" height="25" click="setCookie()"/>
 <mx:Label x="547" y="184" width="118" height="32" fontSize="15" id="lblUse"/>
 <mx:Label x="547" y="258" fontSize="15" width="118" id="lblPsw" height="34"/>
 <mx:Button x="547"


相关文档:

flex右键弹出菜单(demo)

工程下的history文件夹下存放三个文件:index.template.html,rightClick.js,swfobject.js
src文件夹下存放CustomContextMenu.mxml文件。
1.CustomContextMenu.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
 applicati ......

flex分页

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="initApp()">
 <mx:Script>
  <![CDATA[
   public var pageRecordes:uint = 8;
   public var totalPages:ui ......

AIR是什么?.air文件如何打开?flex如何运行air文件

1 安装Adobe AIR 运行时,和java的JVM类似。
Adobe AIR 运行时允许在桌面运行AIR应用程序,脱离游览器的束缚。
下载安装文件http://labs.adobe.com/downloads/air.html
在下载页面有样例程序(Sample Applications)http://labs.adobe.com/technologies/air/samples/
2 安装开发环境
当然我们选择开发效率最高的Flex B ......

Flex easingFunction

<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://www.adobe.com/2006/mxml"
backgroundGradientColors="[0x000000,0x000000]"
themeColor="#222222"
horizontalAlign="left"
paddingLeft="10" paddingRight="10"
creationComplete="genData();"
viewSourceURL="srcview/index.ht ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号