i looked it at a cursory level.
basically, the class that you want the definition for needs to either be in the module app domain loading it or its parent app domain? in my case it is in a seperate child app domain of the parent, which is why it can't be found.. am i right?
however, this forces me to put the module containing the class in the same app domain as the main app. is there a way i can get the definition of the class regardless of what app domain it is in (assuming it is in the same security domain, however) ?
Not only does it matter which app domain has the class, but for getDefinitionByName, it also matters which applicationDomain it is called from.
However, the factory you get back when a module finishes loading can be used to create any class in the module via:
Flex SDK Developer
Adobe Systems Inc.
did you ever discover a solution for your problem? I am trying to do the same thing.