---
title: "TitleWindow 关闭"
author: "gzd3618"
date: "2009-08-19T17:35:14Z"
tags: []
slug: "titlewindow"
draft: false
lastmod: "2009-08-19T17:37:45Z"
id: 453038
url: "https://gzd3618.iteye.com/blog/453038"
---

显示TitleWindow上的“**X**”,点击时并关闭。

```xml
<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);