A module loaded into the main application domain cannot be unloaded.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aduston1976 Sent: Tuesday, March 04, 2008 7:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Stupid question regarding Alex Harui's Modules PPT In Alex Harui's Modules powerpoint (http://blogs.adobe.com/aharui/360Flex2007/Modules.ppt/Modules.ppt <http://blogs.adobe.com/aharui/360Flex2007/Modules.ppt/Modules.ppt> ) he explains the problem that can result when classes are defined in a module and then accessed from another module. In Slide 20 he shows one solution for shared code between modules: load the common code into ApplicationDomain.currentDomain before loading the modules that use the common code. My stupid question: Why not just load all modules into ApplicationDomain.currentDomain? In many scenarios, this could eliminate problems with class definitions being defined in certain modules and being invisible in others. Maybe Alex's blog is a better place to ask this question, I'm not sure. Thank you, Adam