3 Replies Latest reply on Jul 14, 2010 12:15 AM by michael.prescott

    Problem building modules

    jemmyw
      I get this message before each compile when I make any changes to a module that is compiled with my project:
      Unable to resolve a class for factoryClass: module_numberclock_NumberClockModule_mx_core_FlexModuleFactory

      I can get around it by running clean on the project, then it builds ok. But the next time it won't build again, and its quite frustrating. Anybody else get this problem or have a solution?
        • 1. Re:  Problem building modules
          FerakIII

          I know it is 2 years later, but I'm also getting this error also, with the exact symptoms.  Has anyone resolved this, or have any idea what we might  be doing wrong?

          • 2. Re:  Problem building modules
            michael.prescott

            Same problem.  It didn't occur with the same project using the initial Flash Builder release.  It started with an update to Flash Builder version 4.0.1 (277662)

             

            My specific error refers to my module, DataSystemModule:
            Unable to resolve a class for factoryClass: st_core_datasystem_DataSystemModule_mx_core_FlexModuleFactory.

             

            Generally speaking (for the search engines), the error is:
            Unable to resolve a class for factoryClass: [classname] _mx_core_FlexModuleFactory

             

            I've found that if I perform a project clean, the problem goes away for a little while.

            • 3. Re:  Problem building modules
              michael.prescott Level 1

              Just wanted to follow-up.  After adding classes and code to my project this directive, -generate-frame-loader=true, has lost its effectiveness and the error is occuring with increased frequency.  So, as frustrating as it is the only work-around is to clean the project, over, and over, and over again.