12 Replies Latest reply on May 16, 2008 3:04 PM by dddmmmbbb

    Flex 3 GA Designer doesn't work with my modules

      This is absolutely critical to our application.

      In Flex 3 Beta I had no issues doing this, in Flex 3 GA it does not work and I'm wondering if any of you have seen this issue.

      I have extended Module to MyModule and added code that I need. My Flex builder is setup into three projects. AppProject, ModuleProject, and FrameworkProject.

      My Framework is compiled to myframework.swc and is in the lib folder of both ModuleProject and AppProject. Both have the swc correctly setup in the project properties.

      When I open one of my Modules in code view it works great. But when I go over to design view I get an error message in the middle of the design view with the the text "An unknown item is declared as the root of your MXML document. Switch to source mode to correct it." The root node is MyModule and correctly namespaced. Proof of this is that it compiles and runs fine. Only does not work in design view of FlexBuilder

      In the Problems view of FlexBuilder shows a warning: Design mode: Cannot load myframework.swc (reason: ERROR: Load Verify). It may require classes (such as Adobe AIR components) that are not supported by design mode. Check the Eclipse error log for more details."

      This used to come up just fine in design view with Flex 3 beta and now does not in Flex 3 GA. In Flex 3 GA, if I remove myframework.swc from my ModuleProject and instead add a new source link that points to the src folder of my FrameworkProject it works. But I don't want to have to setup my ModuleProject this way because our customers will be able to build their own Modules based off of our Framework and I don't want to give them anything more than a swc.

      Our entire application is based heavily on this. Our customers will use FlexBuilder to design their own forms, compile them to swf modules and our application will load and process them. The code in our framework is proprietary and we only want to give them a swc, not our code.

      Any suggestions?