显示TitleWindow上的“[b]X[/b]”,点击时并关闭。
只要设置
showCloseButton="true" close="PopUpManager.removePopUp(this);
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300"
title="财务表单" xmlns:local="*"
showCloseButton="true" close="PopUpManager.removePopUp(this);">
只要设置
showCloseButton="true" close="PopUpManager.removePopUp(this);