Asdocs似乎无法找到嵌入式资产 [英] Asdocs seems unable to find embedded assets

查看:143
本文介绍了Asdocs似乎无法找到嵌入式资产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用flex sdk 3.2.0从一个.bat文件运行asdocs(我用PROJECTROOT替换了我的长项目根文件夹):

I'm running asdocs from a .bat file with flex sdk 3.2.0 (I have replaced my long project root folder with PROJECTROOT):

"C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\asdoc" -source-path . "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0" "_PROJECTROOT_\Components\src" "C:\_PROJECTROOT_\assets" -doc-sources .
PAUSE"

不幸的是,我不断收到类似这样的错误:

Unforunately, I keep getting errors similar to this:

"_PROJECTROOT_\assets\styles.css(344): Error: Invalid Embed directive in stylesheet - can't resolve source 'Embed(source = "close_button.png")'.

downSkin: Embed(source="close_button.png");"

我真的不明白这一点,因为close_button.png与styles.css在同一个文件夹中。当我在flexbuilder中构建项目时,它编译得很好,并且不会引发任何错误。

I really don't understand this as "close_button.png" is in the same folder as styles.css. When I build the project from within flexbuilder, it compiles it fine and does not throw any errors.

有没有人知道我在做什么错?

Does anyone know what I'm doing wrong?

推荐答案

而我在其他地方发现的一个答案是在资产路径的开始部分加上一个斜线,也就是,而不是

I had a similar problem, and an answer I found elsewhere indicated to put a slash at the beginning of the asset path. That is, instead of

Embed(source="close_button.png")



rather

Embed(source="/close_button.png")

这篇关于Asdocs似乎无法找到嵌入式资产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆