SWFLoaded Embedded Pano - Base Path URL

Using Pano2VR/Object2VR SWF files with your own Flash projects
Post Reply
Posts: 1
Joined: Sat May 05, 2012 11:35 am

Mon May 07, 2012 5:26 pm

I am trying to load a Pano2VR SWF file into my main Flex app. I use the SWFLoader MXML object and everything works fine locally. I really want to put the child SWF (Pano2VR) into another domain though (cloud). That works fine too (once I setup the crossdomain.xml file), but there is a rub.

The child SWF Pano2VR application itself requests additional images for multi-resolution - problem is that the file paths requested are relative. Looking at a network call trace (in browser), I see that the child SWF file now thinks it's base URL path is the base URL path of my parent SWF.

For example: my (parent) Flex app is hosted at http://www.xyz.com, and my "child" SWF file is hosted at http://www.123.com. Technically, the "child" SWF file needs to look for its resources based on a base path of http://www.123.com - however I see it is querying my parent app's base path, http://www.xyz.com.

Is there any way I can override the base url path of the loaded SWF file (in SWFLoader) from within my app? Or is there some setting I am not seeing in Pano2VR's Flash options to "hardcode" a base URL for the multi-resolution file locations - not just the relative paths?

Thanks for any help! Fred.
Post Reply