Copy link to clipboard
Copied
Hi,
Currently, I am developing a powershell script for Flex build automation.
I found some problem and have been trying to search any references and tried any ways to fix it but It did not work.
I am using compc.exe for compiling the libraries and it works fine.
I compiled css files into swf files using mxmlc.exe and it works fine.
However, I have a problem while building my main application (mxml file).
It complains about embedded resources.
I run this command, it works fine:
"C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\styleLang.css" -output "C:\{somePath}\FlashClient_deploy\styleLang.swf"
However, when I tried to run these command on cmd for testing:
"C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\FlashClient.mxml" -load-config "C:\{somePath}\FlashClient\src\dump_config_temp.xml" -output "C:\{somePath}\FlashClient_deploy\flashclient_test.swf"
I got a lot of this error message:
this is my folder structure:
FlashClient
|
|---assets
|---src
|
|---FlashClient.mxml
|---FlashClient.as
|---FlashClientStyleLoopup.css
|---styleLang
Already tried to add / at the beginning of the relative paths but It did not work.
Also tried to compile one of the image to a swc file and include it on the dump_config, but also did not work. something similar with Tech Diary: Flex : Solution to Error: unable to resolve '/assets/icons/icon.png' for transcoding usi...
Does anyone know how flex builder resolve the relative path to make the embedded resources work? or how to fix this?
I've been trying to work on it for days but haven't had any luck.
Will be really appreciate it if someone could help me with this.
Many Thanks.