Access to Resources in Other Domains

The animation file, the configuration file and the images may be located in another domain or on other servers, respectively. This tutorial describes what you should pay attention to in this respect:

1. The paths within the web page must be shown as URLs.
2. The paths of the images within the configuration file must be shown as URLs.
3. Access to the external domains must be configured via a cross-domain-policy file.
4. Calling up from URLs (e. g., when clicking on an image in a 3D Cube) must be explicitly allowed.
Tutorial:

The web page (ClickMe.html) is located at www.myserver1.com
The animation file (3dcubedev.swf) is located at www.myserver2.com/animations/
The configuration file (3dcube.xml) is located at www.myserver3.com/configfiles/
The images are located at www.myserver4.com/images/
1. The paths within the web page must be shown as URLs.
Embed the animation in your web page (ClickMe.html on www.myserver1.com) as follows:
2. The paths of the images within the configuration file must be shown as URLs.
Define all Image paths in the configuration file as URLs:

3. Access to the external domains must be configured via a cross-domain-policy file.
Create in the root directory of www.myserver2.com, www.myserver3.com and www.myserver4.com each an XML file "crossdomain.xml" with the following content:
For further Information, please read the following tutorial on Adobe.com:
External data not accessible outside a Flash movie's domain
4. Calling up from URLs (e. g., when clicking on an image in a 3D Cube) must be explicitly allowed.

The 3D Cube can be configured in such a way that another website can be called up with the click on an image. Due to the security regulations of Flash, calls invoked from URLs will however not be executed when the calling Flash Player movie file (3dcubedev.swf) is located in a different domain than its hosting HTML page!

Solution: Embed the animation with the parameter "allowScriptAccess" and the value "always" in the HTML page:
For further Information, please read the following tutorial on Adobe.com:
Links from SWF files in HTML page no longer function
If the links in a 3D Cube do not work on your local(!) hard disk, this may be due to the Flash security settings. Connections from local Flash animations to the internet must be approved by you explicitly. To do so, open the Flash Settings Manager.
Change to panel "Global Security Settings" (third panel from left) and enter the directory on your local hard disk where the 3D Cube is stored.
Important! Before checking a modification on a web page you should delete the cache of your browser. This ensures that the current version of the web page is loaded.