Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex 使用.swc中的style.css文件,并使用ANT构建Flex项目_Apache Flex_Ant_Stylesheet_Swc_Assets - Fatal编程技术网

Apache flex 使用.swc中的style.css文件,并使用ANT构建Flex项目

Apache flex 使用.swc中的style.css文件,并使用ANT构建Flex项目,apache-flex,ant,stylesheet,swc,assets,Apache Flex,Ant,Stylesheet,Swc,Assets,我有一个.SWC库,里面有一个style.css文件。 .SWC文件被添加到我的项目中,style.css的使用方式如下: <fx:Style source="assets/style/style.css" /> 如果我想用ANT脚本构建我的项目,它会说“找不到外部样式表”。 在ANT中,您需要为带有前导“/”的资产编写路径。因此,这将起作用: <fx:Style source="/assets/style/style.css" /> 但是在这种情况下,无法从

我有一个.SWC库,里面有一个style.css文件。 .SWC文件被添加到我的项目中,style.css的使用方式如下:

<fx:Style source="assets/style/style.css" />

如果我想用ANT脚本构建我的项目,它会说“找不到外部样式表”。 在ANT中,您需要为带有前导“/”的资产编写路径。因此,这将起作用:

<fx:Style source="/assets/style/style.css" />

但是在这种情况下,无法从.swc中检索style.css,因为编译器说“找不到外部样式表”

有没有办法在.swc中使用style.css并使用ANT构建项目?

已解决: 问题出在已编译的SWC中。 我忘了用ant文件来添加样式。当我检查SWC时,我检查了由flashbuilder而不是ant脚本编译的SWC

已解决: 问题出在已编译的SWC中。 我忘了用ant文件来添加样式。当我检查SWC时,我检查了由flashbuilder而不是ant脚本编译的SWC