2 Replies Latest reply on Jan 25, 2007 1:38 AM by vijaykarthi

    Error while compiling <mx:Module>

    vijaykarthi Level 1
      Hi,
      I tried to compile the following <mx:Module> mxml file using the command
      mxmlc SimpleModule.mxml
      But the following error is reported

      Loading configuration file C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\fram
      eworks\flex-config.xml
      D:\Counterpoint\flex\flex\moduleloader\modules_examples\modules_examples\mxmlmod
      ules\SimpleModule.mxml(3): Error: Could not resolve <mx:Module> to a component i
      mplementation. <mx:Module xmlns:mx=" http://www.adobe.com/2006/mxml">
      -----------------------------
      The file contents are

      <?xml version="1.0"?>
      <!-- modules/mxmlmodules/SimpleModule.mxml -->
      <mx:Module xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:Script>
      <![CDATA[
      public function computeAnswer(a:Number, b:Number):Number {
      return a + b;
      }
      ]]>
      </mx:Script>
      </mx:Module>

      Thanks in Advance,
      Vijay Karthik