Hello Alex,

I created two modules and loaded them in different child application domains. 
But get the same instance of class definitions, which were defined in both the 
modules.

I tried to debug into ModuleManager, but could not figure out why the class 
definitions are same.

Any suggestions, how to make/force them to load in different app domains, so 
the both the modules have different class definitions.

Thanks,
Rajkumar
MetaDesign Solutions.
http://www.metadesignsolutions.com


--- In [email protected], Alex Harui <aha...@...> wrote:
>
> Known issue, that you can't compare applicationdomains.  Our workaround is to 
> test whether definitions are the same.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
> 
> From: [email protected] [mailto:[email protected]] On 
> Behalf Of sehrawat_raj
> Sent: Friday, September 04, 2009 12:35 AM
> To: [email protected]
> Subject: [flexcoders] ApplicationDomain, parent not equal for child of same 
> parent.
> 
> 
> 
> For the following lines of code I am getting unexpected results.
> 
> var currAppDomain :ApplicationDomain = ApplicationDomain.currentDomain;
> 
> var appDomain1 :ApplicationDomain = new ApplicationDomain( currAppDomain );
> 
> var appDomain2 :ApplicationDomain = new ApplicationDomain( currAppDomain );
> 
> There appDomain1 and appDomain2 are expected to be child of currAppDomain.
> But appDomain1.parentDomain is not equal to appDomain2.parentDomain.
> Also non of appDomain1.parentDomain & appDomain2.parentDomain is equal to 
> currAppDomain.
> 
> I am checking the value displayed in Flex builder Variables tab.
> 
> The results are very confusing.
> 
> I need this code to load modules in child application domain.
> 
> Ref: 
> http://livedocs.adobe.com/flex/3/html/help.html?content=18_Client_System_Environment_5.html
> 
> I am making any mistake?
> 
> Thanks,
> Rajkumar Sehrawat
>


Reply via email to