首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

该例放在flex4中报错,怎么修改

2013-08-01 
该例放在flex4中报错,如何修改?错误:仅主题为“halo”的类型“mx.containers.TitleWindow”支持样式“dropShado

该例放在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的一些标签什么的。

热点排行