title: Flex 4 - Ant Invalid Embed directive in stylesheet - can't resolve source 'Embed(source="")'
body: <p>I am trying to use ant to build my flex project but got an error:</p>
  
  <pre><code>Invalid Embed directive in stylesheet - can't resolve source 'Embed(source="/assets/fileNm.jpg")' (File: style.css)
  </code></pre>
  
  <p>I don't know how to do.
  Please help me.</p>
  
  <pre><code>src
    assets
      css
        style.css
      img
    com
  </code></pre>
  
  <p>My ANT Task:</p>
  
  <pre><code>&lt;!-- Complie source--&gt;
  &lt;target name="compileBLP" depends="copyAssets"&gt;
      &lt;record name="${LOG_FILE}" action="start" append="false" /&gt;
      &lt;mxmlc file="${SRC_DIR}/Main.mxml" output="${DEPLOY_DIR}/main.swf"&gt;
          &lt;load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/&gt;
          &lt;source-path path-element="${FLEX_HOME}/frameworks"/&gt;
          &lt;compiler.debug&gt;false&lt;/compiler.debug&gt;
  
          &lt;runtime-shared-library-path
              path-element="${FLEX_FRAMEWORK}/framework.swc"&gt;
              &lt;url rsl-url="framework_4.1.0.16076.swf"/&gt;
              &lt;url rsl-url="framework_4.1.0.16076.swz"/&gt;
              &lt;url rsl-url="osmf_flex.4.0.0.13495.swf"/&gt;
              &lt;url rsl-url="osmf_flex.4.0.0.13495.swz"/&gt;
              &lt;url rsl-url="rpc_4.1.0.16076.swf"/&gt;
              &lt;url rsl-url="rpc_4.1.0.16076.swz"/&gt;
              &lt;url rsl-url="spark_4.1.0.16076.swf"/&gt;
              &lt;url rsl-url="spark_4.1.0.16076.swz"/&gt;
              &lt;url rsl-url="sparkskins_4.1.0.16076.swf"/&gt;
              &lt;url rsl-url="sparkskins_4.1.0.16076.swz"/&gt;
              &lt;url rsl-url="textLayout_1.1.0.604.swf"/&gt;
              &lt;url rsl-url="textLayout_1.1.0.604.swz"/&gt;
          &lt;/runtime-shared-library-path&gt;  
  
          &lt;compiler.source-path path-element="${SRC_DIR}" /&gt;
          &lt;compiler.library-path dir="${FLEX_HOME}/frameworks" append="true"&gt;
              &lt;include name="libs" /&gt;
          &lt;/compiler.library-path&gt;
          &lt;compiler.library-path dir="${basedir}" append="true"&gt;
              &lt;include name="libs" /&gt;
          &lt;/compiler.library-path&gt;
      &lt;/mxmlc&gt;
      &lt;record name="${LOG_FILE}" action="stop"/&gt;
  &lt;/target&gt;
  </code></pre>