What we have found is that simply adding a period to the end of the domain name "tricked" flash player into loading the sub-application into a separate security domain. I've been using this method for well over a year now but it's seems a bit of a hack and we've run into a couple of issues here and there (I could not convince them to give me a sub-domain).
I'm curious about the trustContent property of SWFLoader however. If the Livedocs, it specifically mentions that if the trustContent property is set to "true", the content is loading into the main app's security domain. If set to "false"...what security domain is it loaded into? --- In [email protected], Alex Harui <aha...@...> wrote: > > If the two domain names match, you cannot get a new SecurityDomain. You will > need another way of addressing the same server. If you know the IP address > you can use that. Some folks have created DNS mappings to the same server. > > > On 4/2/10 6:21 PM, "Deuce" <f...@...> wrote: > > > > > > > Does anyone know how to load a sub-application as a "sandboxed" application > when on the same domain? > > i.e.: > > http://www.xyz.com/HostApplication.swf > > loads > > http://www.xyz.com/SubApplication.swf > > My simple configuration uses a SWFLoader class as such: > > <mx:SWFLoader id="swfLoader" > trustContent="false" > loadForCompatibility="true"/> > > After running, the loaded sub-application attempts a remote object service > call and the UI displays an error: > > TypeError: Error #1034: Type Coercion failed: cannot convert obj...@24a83949 > to mx.messaging.messages.ErrorMessage. > > This configuration works fine if the sub-application is loaded from a > different domain. Is there a way to load sub-applications, that are able to > remote successfully, from the SAME domain? > > > > > > > -- > Alex Harui > Flex SDK Team > Adobe System, Inc. > http://blogs.adobe.com/aharui >

