1 Reply Latest reply on Oct 16, 2011 4:35 PM by vetseun1

    RSL issues

    vetseun1

      I am getting run-time errors when building my application against Flex SDK 4.5.

       

      Here is a simple test app as an example.  The app is compiled within Flash Builder with the framework linkage set to RSL.

       

      I get the following error when trying to run this:

       

      VerifyError: Error #1014: Class mx.charts.chartClasses::ChartLabel could not be found.

       

      Source code:

       

      TestApp.mxml

      <?xml version="1.0" encoding="utf-8"?>

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

                     xmlns:s="library://ns.adobe.com/flex/spark"

                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

         

          <mx:ModuleLoader width="300" height="300" url="TestModule.swf" />

         

      </s:Application>

       

      TestModule.mxml

      <?xml version="1.0" encoding="utf-8"?>

      <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"

                 xmlns:s="library://ns.adobe.com/flex/spark"

                 xmlns:mx="library://ns.adobe.com/flex/mx" width="300" height="300">

          <fx:Script>

              <![CDATA[

                  import mx.charts.chartClasses.ChartLabel;

              ]]>

          </fx:Script>

       

          <mx:creationComplete>

              <![CDATA[

                  var lbl:ChartLabel = new ChartLabel;

              ]]>

          </mx:creationComplete>

         

      </mx:Module>

       

       

      Any ideas?

        • 1. Re: RSL issues
          vetseun1 Level 1

          I have managed to work this out myself.

           

          Simply set a reference to the missing class in the Application, e.g.:

           

          <?xml version="1.0" encoding="utf-8"?>

          <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

                         xmlns:s="library://ns.adobe.com/flex/spark"

                         xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

             

              <mx:ModuleLoader width="300" height="300" url="TestModule.swf" />

           

               <fx:Script>

                    import mx.charts.chartClasses.ChartLabel;

                    private var _dummy:ChartLabel;

               </fx:Script>

             

          </s:Application>