专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Flex

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

发布时间:2011-06-27 19:27:15 文章来源:www.iduyao.cn 采编人员:星星草
该例放在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的一些标签什么的。
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: