I'm having issues with modules and I'm hoping someone can help me.
Create a module project and layout the module using the following code:
<?xml version="1.0" encoding="utf-8"?> <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="100%" height="100%"> <mx:Label text="Tree Module" x="10" y="10"/> <mx:Button x="10" y="36" label="Button 1"/> <mx:Button x="82" y="36" label="Button 2"/> <mx:Tree x="0" y="66" width="100%" height="100%"/> </mx:Module>
Compile it and then create another project that is an application that only has a ModuleLoader that points the the above module like the following:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:ModuleLoader width="100%" height="100%"> <mx:url>file:///PATH_TO_ABOVE_MODULE.swf</mx:url> </mx:ModuleLoader> </mx:Application>
The module in Flex Builder will appear correctly where the tree controller is placed at 0,66 and spans 100% x 100%. However, when the module is loaded into the Application, everything is placed correctly, but the tree seems to use a minimumWidth and minimumHeight value instead of the 100% x 100%. Has anyone seen this issue before? Mark