Flex中如何通过showCloseButton属性,控制TitleWindow右上角关闭按钮有效/无效

main.mxml

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"
  3. layout="horizontal"
  4. verticalAlign="middle"
  5. backgroundColor="white">
  6. <mx:TitleWindowid="titleWindow1"
  7. showCloseButton="true"
  8. title="TitleWindow"
  9. status="showCloseButton = true"
  10. width="50%"
  11. height="100%"/>
  12. <mx:TitleWindowid="titleWindow2"
  13. showCloseButton="false"
  14. title="TitleWindow"
  15. status="showCloseButton = false"
  16. width="50%"
  17. height="100%"/>
  18. </mx:Application>

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