1 Reply Latest reply on Apr 22, 2008 11:03 PM by dietmar.paulus

    Error: unable to resolve '/images/title.png' for transcoding

    monkeyden.com Level 1
      Error:
      Error: unable to resolve '/images/title.png' for transcoding

      Code:
      [Embed(source="/images/title.png")]
      private var title:Class;

      In FB3, I get this error when building. At the root of the project I have an assets folder, which I have added as a source path, and that folder has the images folder referenced. It seems to me that the file should be found. How can I solve this? For what it's worth, I'm using ANT to do the build. Here is the mxmlc target:

      <target name="build.mxml" depends="check.swf">
      <echo message="${basedir}\assets"/>
      <mxmlc
      file="build/swf/twileague.mxml"
      output="build/swf/twileague.swf"
      services="ear/${WEBAPP_NAME}.war/WEB-INF/flex/services-config.xml"
      context-root="${WEBAPP_CONTEXT_ROOT}"
      use-network="false"
      keep-generated-actionscript="true"
      warn-missing-namespace-decl="false"
      incremental="true">

      <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>

      <source-path path-element="${FLEX_HOME}/frameworks"/>
      <source-path path-element="as3"/>
      <source-path path-element="build/swf"/>
      <source-path path-element="${basedir}\assets"/>

      <compiler.include-libraries dir="lib" append="true">
      <include name="granite.swc" />
      <include name="granite-hibernate.swc" />
      <include name="granite-seam.swc" />
      <include name="Cairngorm.swc"/>
      <include name="myButtons.swc"/>
      <include name="myCombobox.swc"/>
      <include name="tide.swc"/>
      </compiler.include-libraries>
      </mxmlc>
      </target>

      Thanks for any suggestions