TitleWindowのクローズボタン
標準機能であったんだ・・・。しらなかった。
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" showCloseButton="true" close="PopUpManager.removePopUp(this)" width="640" height="480" title="View Image">
Building An Image Viewer in Flex
http://huwebdev.blogspot.com/2006/11/building-image-viewer-in-flex.html