ITeye博客

flex登录

lihua2915 · 2010-08-05 16:19 · 工作相关 · Web前端 · Flex · XML · Markdown

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp()"> mx:states

<mx:State name="index">

<mx:RemoveChild target="{panel1}"/>

<mx:AddChild position="lastChild"> <mx:Label x="231" y="174" text="欢迎来到主页" fontFamily="Georgia" fontSize="20" /> </mx:AddChild> </mx:State> </mx:states> mx:Script <!]> </mx:Script> <mx:Panel x="337.5" y="261" width="349" height="257" layout="absolute" title="用户登录" fontFamily="Georgia" fontSize="12" id="panel1">

<mx:Label x="41.5" y="33" text="用户名"/>

<mx:Label x="42.5" y="81" text="密码"/>

<mx:TextInput x="94.5" y="33" id="txtUsername"/>

<mx:TextInput x="95.5" y="81" id="txtPassword" displayAsPassword="true"/>

<mx:Button x="82.5" y="159" label="登录" id="btnLogin" click="loginHandle()"/>

<mx:Button x="181.5" y="159" label="重置" id="btnReset" click="resetHandle()"/>

<mx:Label x="165.5" y="125" id="lblCheckCode" width="42.5" color="#377CD0"/> <mx:LinkButton x="216" y="123" label="看不清楚?" id="linkbtnReGenerate" click="lblCheckCode.text=GenerateCheckCode();" fontFamily="Georgia" fontSize="11"/> <mx:Label x="39.5" y="123" text="校验码"/>

<mx:TextInput x="96.5" y="121" id="txtCheckCode" width="61" maxChars="4"/> </mx:Panel>

</mx:Application>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。