I have a fairly complex flex project that I'm compiling, but I keep getting a red error on the root tag in my mxml files saying "Nonunique object in package" for even mx classes. I've never seen this before in other Flex projects I have, but this one is my most complex project. I can compile the project fine in IntelliJ and run it. So it's just a disconnect between the IDE dynamic error highlighting and the compiler.
Maybe some simple discussion about the project might help track this down. I have four Flex projects.
Project A -> compiled as a SWC, depends on some external libraries (SWC).
Project B -> compiled as a SWC, depends on Project A, depends on some external libraries (SWC)
Project C -> compiles to a SWF that is loaded dynamically, Depends on Project B
Project D -> compiles to a SWF, depends on Project A and B, and external libraries (SWC).
The external dependencies are defined as a global library with all the SWC's added to that library. That library is then a dependency on A, B, and D. All of these projects depend on the AIR 3.5 SDK.
It seems to be mostly files in project D that use Script source= code behind pattern. I also get a lot of errors in those files because it doesn't see them as belonging to the mxml file they are being included into.
I'm using: 9.0.3, Mac OSX 10.6.
Any help how to fix this so my IntelliJ is really the best IDE? :-) Right now I'm stuck at like 80% awesome.