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" <[email protected]> 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

Reply via email to