Hi.
I am using free Flex 2 SDK on Windows XP.
It came with mxmlc.
Current project directory structure:
proj_root/
src/
data/
All .as files are in proj_root/src/.
All .jpg files are in proj_root/data/.
In proj_root/src/Main.as:
[Embed(source="/data/img.jpg")]
I compile it with a batch file:
@echo off
mxmlc src\Main.as -output main.swf -context-root "%~d0\%~p0"
%~d0%~p0 expands to absolute path of proj_root (build.bat is in proj_root).
However, I get this error:
Error: unable to resolve ‘/data/img.jpg’ for transcoding.
I can use relative path …/data/img.jpg or /…/data/img.jpg
Is there a way to use /data/img.jpg instead of above 2 versions of relative path?
Thank you.