Flex中如何在displayAsPassword为true控件TextInput密码显示时,鼠标移上去时显示内容

main.mxml

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"
  3. layout="vertical"
  4. verticalAlign="middle"
  5. backgroundColor="white">
  6. <mx:Script>
  7. <![CDATA[
  8. import mx.formatters.DateBase;
  9. ]]>
  10. </mx:Script>
  11. <mx:Form>
  12. <mx:FormItemlabel="Name:">
  13. <mx:TextInputid="ccName"
  14. text="JOHN DOE"/>
  15. </mx:FormItem>
  16. <mx:FormItemlabel="Number:">
  17. <mx:TextInputid="ccNumber"
  18. text="4111111111111111"
  19. displayAsPassword="true"
  20. toolTip="{ccNumber.text}"/>
  21. </mx:FormItem>
  22. <mx:FormItemlabel="Type:">
  23. <mx:ComboBoxid="ccType"
  24. dataProvider="[American Express,MasterCard,Visa]"/>
  25. </mx:FormItem>
  26. <mx:FormItemlabel="Expiration:" direction="horizontal">
  27. <mx:ComboBoxid="ccExpMM"
  28. initialize="ccExpMM.dataProvider = DateBase.monthNamesShort;"/>
  29. <mx:ComboBoxid="ccExpYYYY"
  30. dataProvider="[2008,2009,2010]"/>
  31. </mx:FormItem>
  32. </mx:Form>
  33. </mx:Application>

你可能感兴趣的:(xml,Flex,Adobe)