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

登陆,跳到主页面(FLEX)

登陆页面
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  layout="absolute" >
<mx:Script>
 <![CDATA[
  import mx.messaging.messages.HTTPRequestMessage;
  import mx.rpc.http.HTTPService;
  import mx.controls.Alert;
 
  private function loginuser():void{
   if(txtuse.text == "admin" && txtpsw.text == "admin"){
    var u:URLRequest = new URLRequest("http://www.busycode.com/Hellos.swf?UserName="+txtuse.text+"&&Password="+txtpsw.text);
    u.method = "GET";
          navigateToURL(u,"_parent");
   }
  }
 ]]>
</mx:Script>
 <mx:Label x="243" y="162" text="username"/>
 <mx:Label x="243" y="205" text="password"/>
 <mx:TextInput x="313" y="160" id="txtuse"/>
 <mx:TextInput x="313" y="203" id="txtpsw" displayAsPassword="true"/>
 <mx:Button x="348" y="338" label="Login"  click="loginuser()"/>
</mx:Application>
主页面 (必须要上传到服务器)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="getUserName()">
 <mx:Script>
  <![CDATA[
   import mx.controls.Alert; 
 
   private function getUserName():void{
    var username: String = "UserName";
    var password:String = "Password";
    lblUsername.text = this.parameters[username];
    lblpassword.text = this.parameters[password];
   }
  ]]>
 </mx:Script>
 <mx:Label x="183" y="206" text="UserName" width="106" id="lblUser" />
 <mx:Label x="330" y="206" text="Label" width="84" id="lblUsername"/>
 <mx:Label x="183" y="283" text="Passwrod"


相关文档:

Flex List行背景色

 过去在对DataGrid设置行背景色时,感觉还是挺方便的,只要重写DataGrid的,如下
private var _rowColorFunction:Function;
public function set rowColorFunction(f:Function):void
{
this._rowColorFunction = f;
}
public function get rowColorFunction():Func ......

FLex组件之滚动条(ScrollBar)CSS美化

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Style>
ScrollBar
{
    /*划动块图片皮肤*/
    thumbDownSkin: Embed(source="scrollBar/thumb. ......

Top 10 things new Flex developers should know

Top 10 things new Flex developers should know
By Michael Portuesi | Published: November 27, 2009
While helping a coworker get started with Flash and Flex development, I thought it would be a good time to cover the list of things that I have found pretty essential to know about Flex development, co ......

flex toolTip样式设置

需要3个文件。一个是样式类,一个样式文件,一个是mxml文件。
●MyToolTip.as
package{
 import mx.core.UITextField;
 import mx.skins.halo.ToolTipBorder;
 import mx.controls.ToolTip;
 public class MyToolTip extends ToolTipBorder {
  
  
  override ......

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{
&nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号