该例放在flex4中报错,如何修改?
错误:仅主题为“halo”的类型“mx.containers.TitleWindow”支持样式“dropShadowEnabled”。
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
title="Installing Super Awesome Component Set for Flex 3"
layout="vertical"
width="480"
height="240"
titleStyleName="titleText"
backgroundColor="white"
backgroundAlpha="1.0"
borderColor="white"
borderAlpha="1.0"
cornerRadius="0"
dropShadowEnabled="false"
showCloseButton="true"
close="titleWindow_close(event)">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.CloseEvent;
import mx.managers.PopUpManager;
private function titleWindow_close(evt:CloseEvent):void {
PopUpManager.removePopUp(this)
}
private function titleWindow_continue():void {
Alert.show("Installing...");
PopUpManager.removePopUp(this);
}
]]>
</mx:Script>
<mx:Style>
.titleText {
fontSize: 14px;
}
.headingText {
paddingTop: 10px;
paddingBottom: 10px;
fontSize: 10px;
}
</mx:Style>
<mx:Text text="You must accept the software license terms in order to continue the installation."
width="100%"
styleName="headingText" />
<mx:TextArea text="The quick brown fox jumped over the lazy dog"
width="100%"
height="100%" />
<mx:HBox width="100%">
<mx:CheckBox id="checkBox"
label="Click here to accept the software license terms."
width="100%" />
<mx:Button label="Continue"
enabled="{checkBox.selected}"
click="titleWindow_continue()" />
</mx:HBox>
</mx:TitleWindow>
[解决办法]
呵呵 LZ之后可以使用FLEX4的一些标签什么的。