![]() Access to Resources in Other DomainsThe 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 Gallery) must be explicitly allowed. |
Tutorial: The web page (ClickMe.html) is located at www.myserver1.com The animation file (3dgalleryv2.swf) is located at www.myserver2.com/animations/ The configuration file (3dgalleryv2.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 Gallery) must be
explicitly allowed. The 3D Stack 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 (3dgalleryv2.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 do not work when accessing this sample from your local hard disk, a Flash security setting may be the reason, because connections from local Flash animations to the Internet must be approved by you explicitly. To remedy this issue, open the Flash Player Settings Manager: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.html and choose the "Global Security Settings Panel", "Edit Locations", then enter the local disk directory where the animation 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. |