How to specify the correct path in the embedding code of the SWFs


Generally, you must know that the path of the assets the SWF uses (the path of the images or videos 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).

If the folder path of the HTML differs from the product’s folder path (the folder in which the XML files and images or videos are located) then you must specify that path as value for the base attribute.

This is an example for 3D Banner FX (replace the product's name if you're using a different one):

- the index.html file is located at this address on your domain:

- the swfobject.js file is located at this address:

- the product's files (XMLs, assets and images) are located in the Banner folder:

- the 3DBannerFX.swf file is located in the product's folder:

This is the embedding code you have to use:

<div id="Div3DBannerFX"></div>
<script type="text/javascript" src="Banner/swfobject.js"></script> //specify the folder's name here
<script type="text/javascript">
 var flashvars = {};
 var params = {};
 params.base = "Banner/"; //specify the folder's name here
 params.scale = "noscale";
 params.salign = "tl";
 params.wmode = "transparent";
 params.allowFullScreen = "true";
 params.allowScriptAccess = "always";
 swfobject.embedSWF("Banner/3DBannerFX.swf", "Div3DBannerFX", "600", "374", "9.0.0", false, flashvars, params); //specify the folder's name here

You can also use absolute paths like in this example:

params.base = "";

In case you used a different folder name don't forget to replace in all locations the Banner name with the name of your folder.

Note: there are three different locations in the embedding code where you have to specify the product's folder name so make sure you update all of them.



Posted 8 years ago

Hello, I am trying to install multiple flash products on my website. So far I have an image gallery installed on one page and I am trying to install a rotating banner on a different page. Since some of the files for both products have the same file names, I read your article on how to specify specific paths and followed the directions exactly. Unfortunately, the banner rotator will not display correctly. It displays very tiny and will not respond to my changing the size as suggested on your “how to install” page. I can’t figure out what I am doing wrong. Can you help?

FlashXML Support


Please send us the link to your webpage and we will check where the problem is.


Posted 8 years ago

Hi, I’m trying to understand all the processes with the carousel app before purchase it. I have a problem with the carousel width, I setup 1020×800 when I put the code and change the pixels on dreamweaver, the carousel is no wider than 600 pixels. I’m doing anything wrong?

Thank you

FlashXML Support


In order to change the carousel’s dimension, you have to edit settings.xml and to adjust the values for carouselWidth, carouselHeight, radiusX, centerX, etc accordingly. Also, you have to change the value for width and height in the embedding code:

swfobject.embedSWF("3DCarouselMenuFX.swf", "CarouselDiv", "1020", "800", "9.0.0", false, flashvars, params, attributes);

Do not forget to clear your browser's cache before testing the changes.

Toby J Burton

Posted 8 years ago

Hi Support,
I am trying to embed 3D Carousel into an html page to work with my wbe pages, unfortunatly I keep getting the same erroe and I have ran out of idears! can you help?

Below is the script:-

<script type=“text/javascript” scr=“ Carosel/swfobject.js” type=“text/javascript” charset=“UTF-8></script>
<script type=“text/javascript”>
var flashvar = {};
flashvar.folderpath = “ Carosel/”;
flashvar.imagesXML = “ Carosel/images.xml”;
flashvar.rotationAngle = “20”;
flashvar.showCenteredImage = “true”;
var params = {};
params.scale = “noscale”;
params.salign = “tl”;
params.wmode = “transparent”
params.allowScriptAccess = “always”;
params.allowFullScreen = “true”;
var attributes = {};
swfobject.embedSWF(“ Carosel/3DCarouselMenuFX.swf”, “Div3DCarouselMenuFX”, “600, “400, “9.0.0, false, flashvars, params, attributes);
<div id=“Div3DCarouselMenuFX”></div>

Line 23
Error – Expected ‘)’



FlashXML Support


Could you please give us a link to the webpage where you are trying to add the Carousel Menu as I can’t seem to find it on your site?


Posted 8 years ago

I have downloaded the files in which i’m getting the images which is by default.. i’m experimenting by adding my images.. but due to some problem, which is unknown to me, I’m not able to change the images and have similar effects. It would be great if i receive some help

FlashXML Support


Try to clear your browser’s cache and to reload the page each time you make any changes in the xml files. If still does not work, send us the link to your website and we will check it out.


Posted 8 years ago

There is a big problem i’m facing,i cant load the SWF plugin in my website….i want to use easch plug-in with their own folder name like different plugin have their own directory and load them into my website..
there is an path\address location error whic i m facing…
my Main Folder name is “Web” in which i put my whole website,now in the “web“folder there is an separate folder of each plugin like “Web/myplugin”
so i’m creating the website and i want to load all flash plugin into my site,i followed everything as above mentioned,but i didnt get the plugin in my site,there is always an Error of Path,i tried everything but nothing happend..
please help me out soon..
Ath the mean while of website developing i want to load all objects from my hardisk path not from Domain. i mean to say as this is mention in this line swfobject.embedSWF (“”, “DivWeatherWidgetFX”, “325”, “130”, “9.0.0”, false, flashvars, params, attributes);
Now you can see the above path which is starting from domain name of website,,,i want to load all objects from my hardisk while i’m developing site..

i hope you all understand my problem.

FlashXML Support


Your problem can be resolved if you add just one line of code in our HTML embedding code. You can read more about FX components and folder path problems in this FAQ
To load the files, either online, or locally, I recommend you use the relative path to your files, not the absolute http path.

Also, provide a link to your site, once you have it online, even if it is just to test the Weather Widget problem. The only way to be sure what the problem is with your site, we would need to see it live.

Do you have a question?

you will get an answer in 24 hours, tops.

(required) Only alphanumeric characters allowed
(required) (will not be published)
Please type a message! Your message is too long! Either try to keep within 1500 characters, or contact our support team via email at support [at]
(will not be published)
You mistyped the two words!
Can't read? Change the image
Format your comments using Textile: *bold*, _italic_, "link text":address, @code@
Connect to us on Facebook Follow us on Twitter Subscribe to our RSS feed
Copyright © 2009 - 2020