2 Replies Latest reply on Nov 17, 2009 6:02 PM by andre215

    RSL problem in Flex3..

    andre215

      Hi,

       

      I am new to Flex and need help to use Runtime Shared Library in my project.

      I am trying to create simple RSL Project, but it always gives me error when I try to run from my Tomcat Application Server :

       

      VerifyError: Error #1014: Class mx.core::Application could not be found.

           at flash.display::MovieClip/nextFrame()

           at mx.managers::SystemManager/deferredNextFrame()

       

       

       

      I am using simple ant-compc and ant-mxmlc to compile my library project and main project :

       

         <target name="build" depends="clean" >

              <compc output="${FLEX_CUSTOM}/bin/CustomLibrary.swc">

                <include-sources dir="${FLEX_SRC}" includes="*"/>

              </compc>

         </target>

       

       

        and..

       

        <target name="compile">

           <mxmlc file="${FLEX_SRC}/RSLExample.mxml"  output="${FLEX_DEPLOY_DIR}/RSLExample.swf">

       

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

       

                <compiler.external-library-path dir="${FLEX_CUSTOM}/bin" append="true">

                      <include name="CustomLibrary.swc" />

                </compiler.external-library-path>

               

                <runtime-shared-libraries url="CustomLibrary.swf" />

           </mxmlc>

        </target>

       

      When I called from my Tomcat using 'localhost:8080/app', I always get this error. I also have copied 'framework_3.2.0.3958.swz' to  my deployment folder, but this problem is still there.

       

      Any ideas as to what I am doing wrong? I really need help about this..

       

      I really appreciate any help and suggestion ..

       

       

      Thx in advance,

       

      Andre