Sample 6 - Animation file, configuration file and images in different directories.

This example shows the creation of a 3D Cube where the animation file (3dcubedev.swf), the configuration file (3dcube.xml) and the images are stored in different directories.
Control and appearance of the 3D Cube are effected entirely via the XML file 3dcube.xml (Help File).




Settings in ClickMe.html:
Relative path to the animation file (3dcubedev.swf) starting from ClickMe.html
- var so = new SWFObject("MyAnimations/3DCube/3dcubedev.swf", ...

Relative path to the configuration file (3dcube.xml) starting from ClickMe.html
- so.addParam("flashvars", "configfile=MyConfigFiles/3DCube/3dcube.xml");


Settings in 3dcube.xml:
Relative paths for all images starting from ClickMe.html

- BackGroundPath="MyImages/3DCube/background.jpg"
- NavigationButtonPrevPath="MyImages/3DCube/cmdPrev.png"
- NavigationButtonNextPath="MyImages/3DCube/cmdNext.png"

- <ImagePath><![CDATA[MyImages/3DCube/img01.jpg]]></ImagePath>


In the case where animation file, configuration file and/or images are stored in other domains/on different servers, please read the tutorial Access to Resources in Other Domains.