[QUOTE=666shooter;252362]
You should still be able to get the module's applicationdomain through "myModule.loaderInfo.applicationDomain".
[/code]
well, that is exactly my frustration, if I do this inside the module:
Code:
var clsName:String = getQualifiedClassName(this);
var b:Boolean = this.loaderInfo.applicationDomain.hasDefinition(clsName);
Its comes up with 'false'. That's why I'm still stumped...
I was able to get the module's applicationdomain by using this.moduleFactory.info().currentDomain. See the code below to test it out:
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300" creationComplete="init()">
<mx:Script>
<![CDATA[
import flash.utils.getQualifiedClassName;
private function init():void
{
//doesn't work, as you've discovered
var clsName:String = getQualifiedClassName( this );
trace( this.loaderInfo.applicationDomain.hasDefinition(clsName ) );
//traces false
//works
var foo:ApplicationDomain = this.moduleFactory.info().currentDomain as ApplicationDomain;
trace( foo.hasDefinition(clsName ) );
//traces true
}
]]>
</mx:Script>
</mx:Module>
If you debug and look at the moduleFactory.info() object, there's some interesting stuff in there.
HTH,
Tom