Sample 7 - Animation File, Configuration File and Images in Different Directories.This example shows the creation of 3D Gallery where the animation file, the configuration file and the images are stored in different directories.
Control and appearance of the 3D Gallery are effected entirely via the XML file
3dgalleryv2.xml (
Help File).
Settings in ClickMe.html:
Relative path to the animation file (3dgalleryv2.swf) starting from ClickMe.html
- var so = new SWFObject("MyAnimations/3DGalleryV2/3dgalleryv2.swf", ...
Relative path to the configuration file (3dgalleryv2.xml) starting from ClickMe.html
- so.addParam("flashvars", "configfile=MyConfigFiles/3DGalleryV2/3dgalleryv2.xml");
Settings in 3dgalleryv2.xml:
Relative paths for all images starting from ClickMe.html
- BackGroundPath="MyImages/3DGalleryV2/background.jpg"
- <ImagePath><![CDATA[MyImages/3DGalleryV2/img01.jpg]]></ImagePath>
In cases where you want to store the resource files on
different servers or domains, please read the tutorial
Access to Resources in Other Domains.