This looks like a bug. Can you please file a bug at http://bugs.adobe.com/flex
Thanks, Gaurav --- In [email protected], "kp_gem" <[EMAIL PROTECTED]> wrote: > > Thanks Gaurav, > > Here is my directory structure for multiple projects. > > --- include - assets - img > | > |- test > | > |- test1 > | > |- test2 > > > test, test1, and test2 are flex projects and sharing assets in > the 'include' folder. > > And, the ant task is > > <?xml version="1.0" encoding="utf-8"?> > <project name="Builder" basedir="."> > <taskdef resource="flexTasks.tasks" > classpath="flexTasks.jar" /> > <property name="FLEX_HOME" value="C:/Program Files/Adobe/Flex > Builder 3 Plug-in/sdks/3.0.0"/> > <property name="APP_ROOT" value="C:/Projects/test/src"/> > <property name="ASSETS" value="C:/Projects/include"/> > <property name="DEPLOY_DIR" value="C:/Projects/WebContent"/> > <target name="main"> > <mxmlc > file="${APP_ROOT}/test.mxml" > output="${DEPLOY_DIR}/test.swf" > actionscript-file-encoding="UTF-8" > incremental="true" > > > <load-config filename="${FLEX_HOME}/frameworks/flex- > config.xml"/> > <source-path path-element="${FLEX_HOME}/frameworks"/> > <compiler.library-path dir="${FLEX_HOME}/frameworks" > append="true"> > <include name="libs" /> > <include name="../bundles/locale}" /> > </compiler.library-path> > <source-path path-element="${ASSETS}" /> > </mxmlc> > </target> > </project> > > > > --- In [email protected], "Gaurav Jain" <gauravj@> wrote: > > > > Can you show the complete ant task target? > > > > I suspect that the parent folder of assets is not specified in the > > source path. > > > > Thanks, > > Gaurav > > > > --- In [email protected], "kp_gem" <jamesyoon72@> wrote: > > > > > > Hi, > > > > > > Is there any way to include external assets to Flex Ant Tasks > (mxmlc)? > > > I am working on multiple flex projects and want to share 1 single > > > central assets. However, I couldn't find a way in Flex Ant and I > got an > > > following error. > > > > > > [mxmlc] C:\Projects\test\Test.mxml(26): Error: unable to > > > resolve '/assets/img/1.gif' for transcoding > > > [mxmlc] > > > [mxmlc] [Embed(source="/assets/img/1.gif")] > > > > > > But, when I compiled in Flex Builder, it worked ok. Or, please > let me > > > know if there is work around to share assets. > > > > > > Thanks > > > > > >

