Questions
Answer
Path issues with SWF files configured via XML
Generally, you must know that the path of the assets the SWF uses (the path of the images specified in the XML file and the path of the XML files themselves) must be relative to the path of the HTML file which embeds the SWF file (and not relative to the SWF file - a common confusion).

More conclusively:
If the folder path of the HTML differs from the product’s folder path (the folder in which the XML files and images folder are located) then you must specify that path through a variable called folderPath.
For example, in the swfobject embedding code, under this line:
var flashvars = {};
add this line:
flashvars.folderPath = "my_path";
and replace my_path with the path you need to follow to go from the location of the HTML file to the folder in which the assets are located. Alternatively you can specify an absolute path. Note that when you specify the folderPath, it must be terminated with a “/”.
If it is still unclear, please read this arbitrary example:
- the index.html file is located at this address on my domain:
http://www.mydomain.com/index.html
- the swfobject.js file is located at this address:
http://www.mydomain.com/js/swfobject.js
- the product's files (XMLs, assets and images folders) are located in this folder:
http://www.mydomain.com/mycomponent/
- the ComponentNameFX.swf file is located in the product's folder on my domain:
http://www.mydomain.com/mycomponent/ComponentNameFX.swf
In this case, the right embedding code in the index.html file using relative paths is:
<script type="text/javascript" src="mycomponent/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.folderPath = "mycomponent/";
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
params.allowScriptAccess = "always";
var attributes = {};
swfobject.embedSWF("mycomponent/ComponentNameFX.swf", "ComponentNameDiv", "600", "300", "9.0.0", false, flashvars, params, attributes);
</script>
So again, all the paths are relative to the path of the HTML file and note that the folderPath (if specified) should end with a slash (/). You can of course use any path you like for any type of file, but the references must be modified accordingly.
You can also use absolute paths, for example:
flashvars.folderPath = "http://www.mydomain.com/mycomponent/";
Comments
Do you have a question?
you will get an answer in 24 hours, tops.





Cristi
Posted 2 months agoI can’t make it work in Magento.. Can you help me?
I enetred this code...
Hi,
All you need to do is just to add the <div id=“ComponentNameDiv”></div> somewhere in your HTML page. The DIV is the place the SWFObject will put the component.
Alex
Posted 3 months agoHi:
I purchased the Flash-menu (commercial)... It works beautiful on my personal PC, where I test it.
However, when I unzipped and built on my webserver (Joomla/PHP), nothing shows at all other then the “stage area,” no jpgs nor pngs. Empty window.
I carefully configured the xml files (content and settings), made the proper change on the php file responsible for the main page display. The menu works from a html index but how about a PHP file?
My wesite is at http://powerclassroom.net/
My intention is to replace the current demo-lesson play menu with your Flash version. I reached the end of the road….. PLEASE HELP ME!
Alex
Hi,
I checked your website but I have not found where have you tried to embed one of our components. Maybe there is a misunderstanding, because we do not have a component that is called Flash-menu and your email address is not included in our database.
Nimoy Burrowes
Posted 3 months agoIs there an easy way to add or edit events in the calender?
Hi,
Unfortunately the only way to edit the calendar events is manually through Events.xml.
collamack
Posted 3 months agomy flash fail to display in my website.
<script type=“text/javascript”> var flashvars = {}; flashvars.folderPath = “http://www.cp-malaysia.com/4/templates/box_business_blue/images/slideshow/”; var params = {}; params.scale = “noscale”; params.salign = “tl”; params.wmode = “transparent”; params.allowfullscreen = “true”; var attributes = {}; swfobject.embedSWF(“http://www.cp-malaysia.com/4/templates/box_business_blue/images/slideshow/BannerRotatorFX.swf”, “BannerRotatorFXDiv”, “780”, “235”, “9.0.0”, false, flashvars, params, attributes);
</script>
<body>
<div id=“BannerRotatorFXDiv”></div>
</body>
when i try to open http://www.cp-malaysia.com/4/templates/box_business_blue/images/slideshow/BannerRotatorFX.swf directly, it shows only the button & loading display. but no image.
Hi,
The BannerRotatorFX.swf files is missing from the slideshow folder. Please upload again this file.
Brent
Posted 3 months agoI have installed two of your products, Banner Rotator FX and News Ticker FX. I believe I have installed and configured both of them correctly, and they both work fine when I view them locally. They do not work, however, when I publish them. I have made sure all references are relative, and they work fine when I move everything around to different folders.
Hi,
I have checked your site and there seems to be 2 things wrong with your component’s’ installation.
1. The News Reader is trying to read a RSS from another site, http://www.indystar.com/ – this is not working as it is looking for a file called crossdomain.xml which is needed to allow Flash to access files from other domains (sites) other than the one you have the SWF on. You can read more about this in our FAQ here. The idea is that you have to allow the News Reader to read files from other domains.
2. The Banner Rotator – the embedding code points to the SWF being in this place:
http://qualitymill.com/qmstv/banner_rotator/BannerRotatorFX.swf
but at this location there doesn’t seem to be anything on your site.