3 Replies Latest reply on Sep 26, 2010 7:30 PM by Natthavat

    ModuleLoader- when loading a module from a different application i get errors

    kfirufk Level 1


      I try to create modules that can be used by several applications.


      I created a new flex project and created some modules in it.

      if in the same project i use ModuleLoader() to load the modules, then everything works fine. i can load the modules

      and use it's functions.


      If i try to open a new flex project and to load the modules from that project, i get the following errors:


      VerifyError: Error #1014: Class mx.modules::Module could not be found.

      VerifyError: Error #1014: Class mx.core::SpriteAsset could not be found.

      ReferenceError: Error #1065: Variable _module1_Styles__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_1363172102 is not defined.


      i made sure that the modules are not compiled to work with one specific application.


      the reason that I don't want the modules to be port of my project is that i want to add swc files to be compiled into the modules, and this option is per project so i need the modules on a different project.