|
|
|
[
Permlink
| « Hide
]
Christophe Jolif - [10/06/08 07:09 AM ]
Using several Adobe components including DMV one such as OLAP cube is showing the problem
Hi Christophe,
In the bug, you are trying to put a child application that is not on the same domain as the main application into the same security domain via: context.securityDomain = SecurityDomain.currentDomain; This isn't a supported use case. We do not recommend changing the security domain of a child swf. If you want the untrusted child to have access to the parent or vice versa, you should use Security.allowDomain. If I remove the code from the example regarding changing security domains, things work correctly. I don't get any errors. Hi Joan,
What I do is a simple copy/paste of draft Marshall Plan documentation. See "Specifying a LoaderContext" in http://blogs.adobe.com/flexdoc/loadingSubApps.pdf. So if that is *not* the way to go, I guess the documentation should be fixed? I have an application which loads a child Application which is on the server. When i load the child into the parent application it gives me the same stack error
Here is the code for the main application: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="loadACT();" scriptTimeLimit="5000"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.events.FlexEvent; import mx.managers.SystemManager; import mx.controls.SWFLoader; private var loaderA:Loader = new Loader(); private function loadACT():void { var contextA:LoaderContext = new LoaderContext(); contextA.applicationDomain = new ApplicationDomain(); loaderA.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loaderA.load(new URLRequest("other/Demo_flex3.swf"), contextA); } private var myLoader:SWFLoader ; private function completeHandler(event:Event):void { myLoader = new SWFLoader(); myLoader.trustContent=true ; Security.allowDomain("*"); myLoader.source = event.target.content; this.addChild(myLoader); } ]]> </mx:Script> </mx:Application> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||