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.





Mike
Posted 5 months agoHi,
It could be used on Sharepoint?
I’m having some problems trying to make it work in Sharepoint 2010. Did you know any issue using the SiteCollectionImages or another Sharepoint folder to store the XML and the images?
Thanks in advance!
Hi,
Unfortunately we never tried something like that.
Philippe
Posted 5 months agoHi,
Before purchasing your superb banner navigator for our website, I wanted to tests it and show it around…
Unfortunately, we do have an issue which prevents me to make it work until now: as soon as we upload any file onto our webserver, the files get renamed and stored in a special directory which I guess is ok for images, swfobject.js and the flash navigator itself, but I assume your flash navigator expects the settings.xml file to be there and this is where the problem will be….Wouldn’t it be possible to have it be specified as a flashvar so that it can use any file from any location?
Thanks and best regards
Philippe
Hi,
The settings.xml can be specified in the embedding code of the component through flashvars like this:
var flashvars = {}; flashvars.settingsXML="yoursettings.xml";The path to the swfobject.js and SWF file can be indicated in the embedding code too:
swfobject.embedSWF("ComponentNameFX.swf", "ComponentNameDiv", "600", "300", "9.0.0", false, flashvars, params, attributes);The images.xml file are declared in the settings.xml on the following line:
whereas the images are declared in the images.xml file; each image has its own row with the attributes already included in the default XML file.
We recommend you to keep all the files in the same directory because in this way you won’t complicate things.
Frank
Posted 5 months agoHi FlashXML.net-Team,
thank you for the personal email , that you sent to me.
It does not matter that I did not buy products from you at this moment, but the full package from Flashtuning.
You are the FlashXML.net-Team, I am not ruling out to buy products from you, infact I am sure to do this in the future. But I will not buy from any Flash-XML-Tool-Company any product, as long as this problem is not solved.
This would help many of your customers (and me, hehe).
And for you would it be worldwide a very good advertising if you show the people to avoid this headache.
My question is still the same, but you choosed to ignore this question and still do not help in a propper way your customers with an example code that is complete. That means a index.htm-file that everybody of your customers can download, including the related files and subfolders.
So, go to work, it should easy for you, bring an example of a index.htm-page with some standardtext and between two modules from YOU with different flashfars.folderPath and make the whole world of Flash-XML-Tool-Buyers happy!
I am (and maaaaaaaaaaaany other people) wait for this!!!!!!!!!!!!!!!!!!!
nice greetings
Frank
Hi,
We can only offer support for our products so tell us what exactly is the problem you’re having and which product of ours are you using.
Frank
Posted 5 months agoHi Flashtuning-Team,
what is wrong with you???
Why you make everything so difficult for the people and feed the people only with answers which doesn’t handle the whole problem, but only step by step answers?
Just show a example webpage with 2 different tools from you, both in different folders, for example NewsTickerXML and CarouselXML
Show a index.htm webpage where this two different tools from you work on the same page in different DIV.
You will automatically answer with this example the most questions. I can not understand why you feed us customers always little by little informations. And of course, you give only informations that are not clear for people who want to use their original XML webpage and include on some positions in this webpage your tools without changing too much.
I bought for 59 USD from you teh full products and I am getting more and more pissed of because your way how to help. Your support is fast, but not good!
The idea with the flashvars.folderpath is great, but your example here is absolutely not working.
Give some good examples that you tested before and include everythging.
a nerved customer from you
Frank
Hi,
Unfortunately you didn’t post your message on the correct website. This is no Flashtuning team. We are FlashXML.net Team and we don’t have any of the products you specified in your message. You can see here our list of products.
Antonio
Posted 5 months agoMy english is poor one but I do the best to explain:
I have a site on my computer worked on frontPage, All files are on Mydocuments/mywebsites/ano/newfolder/
I want put two components, one on index.html and other on gallery.html.
OK
I have the site files and folders as well folders component1 and component2 where are the files and folders correspondent to each one as follwing:
-On Mydocuments/mywebsites/ano/newfolder/ component2: images folder colorbox folder assets folder swfobject.js style.CSS settings.XML imageScrollerFX.SWF imageScrollerFX.MXP imagesrollerFX.FLA images.XML
On Mydocuments/mywebsites/ano/newfolder/ component2:
(as above for the corresponding compenent)
On site index page between <head> </head> following:
<script type=“text/javascript” src=“component2/swfobject.js”></script> <script type=“text/javascript”> var flashvars2 = {}; flashvars.folderPath = “component2/”; var params2 = {}; params2.scale = “noscale”; params2.salign = “tl”; params2.wmode = “transparent”; var attributes2 = {}; swfobject.embedSWF(“component2/ImageScrollerFX.swf”, “DivImageScrollerFX”, “759”, “160”, “9.0.0”, false, flashvars2, params2, attributes2); </script>
On posicion where I want the scroller : <div id=“DivImageScrollerFX”></div>
On the end before </body> :
<div id=“DivImageScrollerFX”> <a href=“http://www.adobe.com/go/getflashplayer”> <img src=“http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif” alt=“Get Adobe Flash player” /> </a> </div>
<div id=“ComponentDiv2”>
After for component1 I do the some on gallery page.
Nothing hapened . Could you inform me if it is correct on what mus be changed?
Thanks in advance
Antonio