Hi All, I am having problems compiling modules using Ant.
Here are my TestModule.mxml: <?xml version="1.0"?> <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"> <mx:Label text="Test"/> </mx:Module> I can compile successfuly using Flex Builder -> Run as Application or command line: "C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\bin\mxmlc.exe" -output=bin/TestModule.swf TestModule.mxml Here is my very simple Ant build: <?xml version="1.0"?> <project name="TestModule" default="compile"> <property name="flex.mxmlc" location="C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\bin\mxmlc.exe" /> <target name="compile"> <exec executable="${flex.mxmlc}" failonerror="true"> <arg line="-output 'bin/TestModule.swf'"/> <arg line="TestModule.mxml"/> </exec> </target> </project> Result: TestModule.mxml(4): Error: Could not resolve <mx:Module> to a component implementation. If I change mx:Model to mx:Application, it compiles well. Also, in one of my other application, I tried to load a module, and I got the same Error: Could not resolve <mx:ModuleLoader> to a component implementation. What am I missing? Thanks, Andi