Flex 表单

 

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
 xmlns:s
="library://ns.adobe.com/flex/spark" 
 xmlns:mx
="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768" width="380" height="370">
     
<s:Rect width="380" height="100%" radiusX="4" radiusY="4">
  
<s:fill>
   
<s:LinearGradient>
            
<s:GradientEntry color="#4A4A4A" alpha="1.0"/>
            
<s:GradientEntry color="#6F6f6F" alpha="1.0"/>
      
</s:LinearGradient>
  
</s:fill>
  
</s:Rect>
     
<mx:Label text="EMPLOYEE" x="66" y="40" width="95" color="#FFFFFF" fontSize="15" fontWeight="bold" fontFamily="aria"/>
     
<mx:Label x="175" y="40" text="MANAGEMENT" color="#C73F10" fontSize="15" fontFamily="aria" fontWeight="bold"/>
     
<s:Group left="30" top="65" bottom="1"> 
     
<s:layout>
         
<s:VerticalLayout/>
     
</s:layout> 
  
<mx:Form fontSize="12" indicatorGap="5">
   
<mx:FormItem label="First Name:" height="22">
          
<s:TextInput id="firstName" width="140" color="#111111"/>
      
</mx:FormItem>
      
<mx:FormItem label="Last Name:" height="22">
          
<s:TextInput id="lastName" width="140" color="#111111" text="{firstName.text}"/>
      
</mx:FormItem>
      
<mx:FormItem label="Email:" height="22">
          
<s:TextInput id="email" width="140" color="#111111"/>
      
</mx:FormItem>
      
<mx:FormItem label="Home Address:" height="22">
          
<s:TextInput id="homeAddress" width="140" color="#111111"/>
      
</mx:FormItem>
      
<mx:FormItem label="City:" height="22">
          
<s:TextInput id="city" width="140" color="#111111"/>
      
</mx:FormItem>
      
<mx:FormItem label="State:" height="22">
          
<mx:ComboBox editable="false" width="140" color="#111111">
     
<mx:ArrayCollection>
      
<fx:String>四川省</fx:String>
      
<fx:String>河南省</fx:String>
      
<fx:String>山西省</fx:String>
     
</mx:ArrayCollection>
    
</mx:ComboBox>
      
</mx:FormItem>
      
<mx:FormItem label="Zip:" height="22">
          
<s:TextInput id="zip" width="140" color="#111111" maxChars="20" restrict="0-9"/>
      
</mx:FormItem>
      
<mx:FormItem height="22">
          
<s:Button label="submit" color="#2F33D9" fontWeight="normal"/>
      
</mx:FormItem>
  
</mx:Form>
  
</s:Group>
 
<fx:Style source="De_1.css"/>
</s:Application>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值