1 Reply Latest reply on Jul 9, 2009 1:51 PM by injpix

    ant mxmlc problem with SharedResources

    jmiguel77

      Hi

       

      i am trying to create an application using flexlib and arcgis api for flex. I compile my flex app using ant with this task

       

      <target name="flex-compile">
              <mxmlc file="${web.visor}/paginas/main.mxml" locale="en_US" keep-generated-actionscript="false" services="${webinf.visor}/flex/services-config.xml">
                  <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="locale/en_US" />
                  </compiler.library-path>
                  <compiler.source-path path-element="${src.visor.flex}" />
                  <compiler.external-library-path dir="${lib.flex}">
                      <include name="agslib-1.2-2009-05-15.swc" />
                      <include name="flexlib.swc" />
                  </compiler.external-library-path>
              </mxmlc>
          </target>

       

      but when i try to run the swf file i get this error:

       

      An ActionScript error has occurred:
      Error: Could not find compiled resource bundle 'SharedResources' for locale 'en_US'.
          at mx.resources::ResourceManagerImpl/http://www.adobe.com/2006/flex/mx/internal::installCompiledResourceBundle()
          at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()
          at mx.managers::SystemManager/installCompiledResourceBundles()
          at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()
          at mx.managers::SystemManager/docFrameListener()

       

      any ideas ?? sorry, but i am really new to flex

       

      thanks a lot

        • 1. Re: ant mxmlc problem with SharedResources
          injpix Level 3

          Have you tried to use <compiler.include-libraries> tag to include external libraries in the compilation?

           

                      <!-- Include external Flex Libraries -->
                      <compiler.include-libraries dir="${PUREMVC_STANDARD}">
                          <include name="PureMVC_Standard.swc" />
                      </compiler.include-libraries>
                      
                      <compiler.include-libraries dir="${XIFF}">
                          <include name="XIFF.swc" />
                      </compiler.include-libraries>
          

           

          I never had a need to use <compiler.external-library-path> tag.