Not sure I understood the problem, but the first thing to know about sub-modules is that by default they load into sibling applicationdomains. This is due to the way applicationdomains work. You can look at the diagrams in the modules presentation on my blog to help visualize it.
The main Flex app almost always has ModuleManager in it to support CSS and Resource Modules. When you load a module, the main app's appDom is the parent and the module gets loaded as a child of that appdom. That's what we want, right? But the problem is that when that module tries to load a sub-module, it is going to use the main apps' ModuleManager and thus the sub-module loads as a child of the main app's appdom and not the module's appdom and then sub-module can't see the module's classes. I'm guessing that's your problem. The solution is to explicitly set the applicationDomain parameter when loading the sub-module. But even that can be tricky because when you say "new ApplicationDomain(ApplicationDomain.currentDomain)" if that code is in a class loaded in the main app's appdom, currentDomain is the main app's appdom. So be sure the code that calls load is in the module and nowhere else. Maybe that'll help. Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Friday, August 07, 2009 10:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Modules and fonts vanishing is giving me the cramps Alex (or/and others) Here's my issue, I have a module that loads another module, a sub module. I am trying to access the loaded module, the problem is that first, if I add it to my shared code file, doesn't it compiled into the shell? or just a reference.... I can access methods on my module through it's public properties, but I have to assign it as wildcard, "*"? Which works 90 percent of the time, but once in a while the module's or it's properties come back as undefined. So, I tried the shared code solution again, but then my fonts mysteriously vanish out of my app. Help, I am gonna go smack my head with a hammer a few times, Thanks, Patrick