0 Replies Latest reply on Jan 20, 2012 12:57 AM by yaiba23

    Reference does not clearly error

    yaiba23

      When I compile a flex project.First I compile the flex_src/components directory to components.swc package. Then enforce referential the components.swc to compile the Main.mxml under  the flex_src/ directory without delete the flex_src/components directory.There will be a reference does not clear error. I don't want to delete the source under flex_src/components directory.How can I compile the source.I use ant to do this.The following is my code. Thanks.

      <target name="compileSwc">
        <compc output="./flex_libs/components.swc">
         <include-sources dir = "flex_src\components" includes = "**/**.as **/**.mxml"/>
         <source-path path-element="./flex_src" />
         <source-path path-element="./flex_src/resources"/>
         <compiler.include-libraries dir="./flex_libs" append="true">
          <include name="as3GifPlayer.swc" />
          <include name="Cairngorm.swc" />
         </compiler.include-libraries>
        </compc>
      </target>


      <target name="compileSwf">
        <mxmlc
            file="./flex_src/main.mxml"
         output="./main.swf"
         link-report="./Appreport.xml"
         incremental="true" >
         <source-path path-element="./flex_src/resources"/>
         <source-path path-element="./flex_src"/>
         <compiler.include-libraries dir="./flex_libs" append="true">
          <include name="as3GifPlayer.swc" />
          <include name="Cairngorm.swc" />
          <include name="components.swc" />
         </compiler.include-libraries>
        </mxmlc>
      </target>