读书人

在Flex3.5 迁徙至4.0或更高版本编译报

发布时间: 2012-08-24 10:00:21 作者: rapoo

在Flex3.5 迁移至4.0或更高版本编译报错

在Flex中

从低版本向高版本迁移的过程中,其中会出现如下一问题:

?

The style 'backgroundSize' is only supported by type 'mx.containers.Canvas' with the theme(s) 'halo'

The style 'xxxx' is only supported by type 'mx.containers.xx' with the theme(s) 'halo'

?

解决办法:

?

1.项目右键-properties-Flex Build Path -Source path tab, 【Add Folder】

?

??? X:\....\Adobe\flexsdk\frameworks\themes\Halo

?

2.在Flex Compiler 中添加如下编译参数:

?

?-theme=halo.swc

?

如果编译参数中已经有内容了,注意空一格。。。再添加。。。保存即可。。。

?

?

读书人网 >flex

热点推荐