I ran into this error when I was trying to embed an swf into one of my classes like this:
It gave no error in Flex Builder, but when I was about to build the application using standalone compiler and deploy to production, an error was thrown out:
The solution was easy: just to append a '/' in front of assets like this:
Damn unbelievable. I was wondering why the compiler in FB didn't complain in the first place.
[Embed(source='assets/aaa.swf',symbol='bbb')]
private var bbb:Class;
It gave no error in Flex Builder, but when I was about to build the application using standalone compiler and deploy to production, an error was thrown out:
unable to resolve 'assets/aaa.swf' for transcoding
The solution was easy: just to append a '/' in front of assets like this:
[Embed(source='/assets/aaa.swf',symbol='bbb')]
private var bbb:Class;
Damn unbelievable. I was wondering why the compiler in FB didn't complain in the first place.
本文解决了使用Flex编译器部署应用程序时遇到的ASWF文件嵌入错误。通过在资源路径前添加斜杠解决了Flex Builder中未提示但在独立编译器中出现的问题。
757

被折叠的 条评论
为什么被折叠?



