Advertisement
Guest User

Untitled

a guest
May 1st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 KB | None | 0 0
  1. <mx:states>
  2. <!--register page-->
  3. <mx:State name="Register">
  4. <mx:RemoveChild target="{canvas1}"/>
  5. <mx:SetProperty target="{canvas2}" name="height" value="100%"/>
  6. <mx:SetProperty target="{canvas2}" name="width" value="100%"/>
  7. <mx:RemoveChild target="{icon3btn}"/>
  8. <mx:RemoveChild target="{icon2btn}"/>
  9. <mx:RemoveChild target="{icon1btn}"/>
  10. <mx:RemoveChild target="{label1}"/>
  11. <mx:SetProperty target="{canvas3}" name="width" value="950"/>
  12. <mx:SetProperty target="{text2}" name="x"/>
  13. <mx:SetStyle target="{text2}" name="horizontalCenter" value="0"/>
  14. <mx:SetProperty target="{label16}" name="x" value="551.05"/>
  15. <mx:SetProperty target="{label16}" name="y" value="15.9"/>
  16. <mx:SetProperty target="{label15}" name="x" value="465.1"/>
  17. <mx:SetProperty target="{label15}" name="y" value="15.9"/>
  18. <mx:SetProperty target="{text4}" name="x" value="533.5"/>
  19. <mx:SetProperty target="{text4}" name="y" value="15.9"/>
  20. <mx:SetProperty target="{text3}" name="x" value="449.25"/>
  21. <mx:SetProperty target="{text3}" name="y" value="15.9"/>
  22. <mx:SetProperty target="{label14}" name="x" value="368.85"/>
  23. <mx:SetProperty target="{label14}" name="y" value="15.9"/>
  24. <mx:SetProperty name="width" value="1024"/>
  25. <mx:SetProperty name="height" value="850"/>
  26. <mx:RemoveChild target="{label21}"/>
  27. <mx:RemoveChild target="{label22}"/>
  28. <mx:RemoveChild target="{label2}"/>
  29. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  30. <mx:Label x="741.2" y="55.7" text="Login" fontStyle="normal" fontSize="8" textDecoration="underline" useHandCursor="true" buttonMode="true" mouseChildren="false" click="loginbtn(event)" id="label26" width="34.666668" height="16"/>
  31. </mx:AddChild>
  32. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  33. <mx:Image x="737.2" y="26.35" useHandCursor="true" buttonMode="true" click="loginbtn(event)" id="label27" source="images/login.png"/>
  34. </mx:AddChild>
  35. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  36. <mx:Label x="57.15" y="51.15" text="Register" fontWeight="bold" fontSize="12"/>
  37. </mx:AddChild>
  38. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  39. <mx:Label x="269.5" y="136.25" text="First Name :" fontSize="11"/>
  40. </mx:AddChild>
  41. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  42. <mx:Label x="270.5" y="163.25" text="Last Name :" fontSize="11"/>
  43. </mx:AddChild>
  44. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  45. <mx:Label x="272.5" y="190.25" text="Username :" fontSize="11"/>
  46. </mx:AddChild>
  47. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  48. <mx:Label x="276.5" y="217.25" text="Password :" fontSize="11"/>
  49. </mx:AddChild>
  50. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  51. <mx:Label x="288.5" y="244.25" text="Gender :" fontSize="11"/>
  52. </mx:AddChild>
  53. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  54. <mx:Label x="255.5" y="271.25" text="Date Of Birth :" fontSize="11"/>
  55. </mx:AddChild>
  56. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  57. <mx:Label x="302.5" y="298.25" text="Race :" fontSize="11"/>
  58. </mx:AddChild>
  59. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  60. <mx:Label x="299.5" y="325.25" text="Email :" fontSize="11"/>
  61. </mx:AddChild>
  62. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  63. <mx:Label x="270.5" y="352.25" text="Nationality :" fontSize="11"/>
  64. </mx:AddChild>
  65. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  66. <mx:TextInput x="352.5" y="135.25" id="first"/>
  67. </mx:AddChild>
  68. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  69. <mx:TextInput x="352.5" y="162.25" id="last"/>
  70. </mx:AddChild>
  71. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  72. <mx:TextInput x="352.5" y="189.25" id="reg_user"/>
  73. </mx:AddChild>
  74. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  75. <mx:TextInput x="352.5" y="216.25" id="reg_pass" displayAsPassword="true"/>
  76. </mx:AddChild>
  77.  
  78. <mx:AddChild relativeTo="{canvas2}" position="lastChild" creationPolicy="all">
  79. <mx:RadioButtonGroup id="gender"/>
  80. <mx:RadioButton x="352.5" y="243.25" label="Male" fontSize="11" id="male" groupName="gender"/>
  81. <mx:RadioButton x="430.5" y="243.25" label="Female" fontSize="11" id="female" groupName="gender" />
  82. </mx:AddChild>
  83.  
  84. <mx:AddChild relativeTo="{canvas2}" position="lastChild" creationPolicy="all">
  85. <mx:DateField x="352.5" y="270.25" width="160" id="dateField1" yearNavigationEnabled="true" change="dateChanged(event)"/>
  86. <mx:Label id="dateselection" x="228" y="159" visible="false"/>
  87. </mx:AddChild>
  88. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  89. <mx:TextInput x="352.5" y="297.25" id="race"/>
  90. </mx:AddChild>
  91. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  92. <mx:TextInput x="352.5" y="324.25" id="email"/>
  93. </mx:AddChild>
  94. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  95. <mx:TextInput x="352.5" y="351.25" id="nationality"/>
  96. </mx:AddChild>
  97. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  98. <mx:Button x="573.5" y="404.25" label="Register" id="signupbtn2" click="register_user.send();"/>
  99. </mx:AddChild>
  100. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  101. <mx:Button x="514.5" y="404.25" label="Clear" id="clearbtn1" click="resetBtn();"/>
  102. </mx:AddChild>
  103. <mx:AddChild relativeTo="{canvas2}" position="lastChild">
  104. <mx:Label x="378.5" y="98.25" text="Successful Registered!" color="#43EC15" fontWeight="bold" id="msgReg" enabled="true" visible="false"/>
  105. </mx:AddChild>
  106.  
  107. </mx:State>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement