![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiInBnauIzYyEDOiN2M4QDMwQTMlNDOiV2YmVWOiBTO1EGO3MDNfdWbp9CXt92Yu4GZjlGbh5SZslmZxl3Lc9CX6MHc0RHaiojIsJye.jpg)
TitleWindow的CloseButtionSkin問題
closeButton首先會被當做4個icon來解決,這樣你必須建立4個icon,很麻煩
網上都是這樣,不僅麻煩,且我認為影響性能,
mx:button是建一個,然後用标簽stage :up,down來解決,
這個例子是用這個語句解決,看紅色的字
<?xml version="1.0" encoding="utf-8"?>
layout="vertical"
verticalAlign="middle"
backgroundColor="white" viewSourceURL="srcview/index.html">
<mx:Style>
TitleWindow {
closeButtonSkin: Embed(skinClass="BulletSkins");
/* Set values from defaults.css to null. */
closeButtonDisabledSkin: ClassReference(null);
closeButtonDownSkin: ClassReference(null);
closeButtonOverSkin: ClassReference(null);
closeButtonUpSkin: ClassReference(null);
}
</mx:Style>
<mx:TitleWindow id="titleWindow"
title="TitleWindow"
status="status message"
showCloseButton="true"
width="100%"
height="100%" />
</mx:Application>