tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/650-robotlegs-modular-loading-from-swfRobotlegs: Discussion 2012-09-26T12:42:21Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/190308022012-09-25T14:57:22Z2012-09-25T14:57:22ZRobotlegs Modular , loading from SWF<div><p>Hi thexeb,</p>
<p>Have you tried ApplicationDomain.currentDomain ?</p>
<p>= Creates a new application domain:</p>
<p>var appDomainA:ApplicationDomain=new ApplicationDomain();
//separate domains, no conflict</p>
<p>= Gets the current application domain in which your code is
executing:</p>
<p>var
<strong>appDomainB</strong>:ApplicationDomain=ApplicationDomain.currentDomain;
//<strong>good</strong></p>
<p>= var appDomainC:ApplicationDomain=new
ApplicationDomain(ApplicationDomain.currentDomain); //bad</p>
<p>= This security sandbox of the caller is not allowed to access
this ApplicationDomain:</p>
<p>swfLoader.loaderContext=new LoaderContext(false,
swfLoader.loaderInfo.applicationDomain);//bad</p>
<p>=> swfLoader.loaderContext=new LoaderContext(false,
<strong>appDomainB</strong>);//<strong>good</strong></p>
<p>hth<br>
Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/190308022012-09-25T16:10:49Z2012-09-25T16:10:49ZRobotlegs Modular , loading from SWF<div><p>thanks Ondina , this worked perfectly ,<br>
i was using this.loaderInfo.applicationDomain for Single SWF
Module,<br>
then for a repository swf , i used NULL ( for local ) ,<br>
but passing ApplicationDomain.currentDomain to context creation
solves the problem ,<br>
thanks again</p></div>thexebtag:robotlegs.tenderapp.com,2009-10-18:Comment/190308022012-09-25T16:13:08Z2012-09-25T16:13:08ZRobotlegs Modular , loading from SWF<div><p>i m testing locally , i am afraid i will be facing this kind of
issues when i will upload it to my website , any hint for that ?
how will this applicationDOmain affect the loading of module
then?</p></div>thexebtag:robotlegs.tenderapp.com,2009-10-18:Comment/190308022012-09-26T08:18:53Z2012-09-26T08:18:53ZRobotlegs Modular , loading from SWF<div><p>You’re welcome:)</p>
<blockquote>
<p>i m testing locally , i am afraid i will be facing this kind of
issues when i will upload it to my website , any hint for that ?
how will this applicationDOmain affect the loading of module
then?</p>
</blockquote>
<p>Not sure what kind of issues are you expecting to have.</p>
<p>More info about</p>
<p>ApplicationDomain:<br>
<a href=
"http://livedocs.adobe.com/flex/3/html/18_Client_System_Environment_5.html">
http://livedocs.adobe.com/flex/3/html/18_Client_System_Environment_...</a></p>
<p>Loading remote assets</p>
<p><a href=
"http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf6167e-7fe9.html#WS2db454920e96a9e51e63e3d11c0bf69084-7f2b">
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c...</a></p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/190308022012-09-26T12:34:25Z2012-09-26T12:34:25ZRobotlegs Modular , loading from SWF<div><p>thanks ondina , i waz talking about an online app and loading
remote assets , i will have to post another problem when i face
:P<br>
i m grateful to you for helping me out thanks</p></div>thexebtag:robotlegs.tenderapp.com,2009-10-18:Comment/190308022012-09-26T12:42:19Z2012-09-26T12:42:19ZRobotlegs Modular , loading from SWF<div><p>My pleasure :)<br>
I’ll mark this discussion as „resovled“.</p></div>Ondina D.F.