Questions

Answer

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: http://www.yourdomain.com/index.html

- the swfobject.js file is located at this address: http://www.yourdomain.com/Banner/swfobject.js

- the product's files (XMLs, assets and images) are located in the Banner folder: http://www.yourdomain.com/Banner/

- the 3DBannerFX.swf file is located in the product's folder: http://www.yourdomain.com/Banner/3DBannerFX.swf

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
</script>

You can also use absolute paths like in this example:

params.base = "http://www.yourdomain.com/Banner/";

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.

Comments

Mark

Posted 9 years ago

This is just a test page, but I cant seem to get it to work. The html file is in the root folder (gallery-test.html). The assets folder etc. are in a folder named GRID in the root folder.

FlashXML Support

Hello,

You need to insert this : flashvars.settingsXML = “settings.xml”; inside the embedding code, just after flashvars.folderPath .

Tom

Posted 9 years ago

Thanks for the quick response. The carousel menu is fully functional now. Thanks again.

Tom

Posted 9 years ago

Hi,

I am trying to embed the Carousel Menu on my page. It worked when I put the html files in the carousel folder but when I took the html file to a differrent location it doesn’t work. I tried to correct the path with your tutorial but still not work. Does this means that when ever I want to use the flash player I have to put the html in that folder in-order for it to work. What if I want to use two different type of player on the same page? My site is http://astro.temple.edu/~tuc70260/test13.html. Any insight would be much appreciated. Thanks.

FlashXML Support

Hello,

You need to put an absolute path to this .js file : src=”../carousel/swfobject.js” (starting with http://yourSite.domain/ etc).

Also, if you have set a folder path, this line of code : flashvars.settingsXML = “../carousel/settings.xml”;
should look like this : flashvars.settingsXML = “settings.xml” (with your current folder path).

Sally Noseda

Posted 9 years ago

I installed the commercial version of Image Slider on my previous website on http://www.i4detail.eu. I copied all the files over to my new domain http://www.i4detail.co.uk and the slideshow looks as if it’s working. But when I went to change some of the images in image-slider-fx/images.xml, the details in this file were all the default images supplied with the software and none of my images were there. I checked the path in the settings and it is shown as
SWF and assets path is /home/sites/i4detail.co.uk/public_html/wp-content/flashxml/image-slider-fx.

I do not know where the “sites” part of the path has come from and wonder if this is causing the problem. I changed the flashvars.folderPath in the index.html file but this has made no difference.

At the moment the slideshow is working but I have no idea how as it does not reflect the changes I made to the image file. So, it means that I cannot update the images of text now.

The situation is exactly the same on the previous website www.i4detail.eu which is still live so I’m sure there’s something wrong with the paths somewhere but I cannot find it.
I would really appreciate your help asap.
Thanks
Sally

FlashXML Support

Hello,

We’ve checked your website and the photos inside the Image Slider are not the ones from our site, they seem to be images of what you’ve worked on…which is what oyu wanted.

Try clearing your browser’s cache an re-visiting your page.

AM

Posted 9 years ago

I purchased the Special License of Media Slideshow. I need to edit the settings.xml file name and also change the folder structure to have the html look for images>mediaSlideshow.swf. The images folder is where I would like everything contained. I have Flash CS3 professional but can not find any actions to add the line “flashvars.folderPath = “my_path”;”. When I open the Flash document there is a movie clip but I can’t find the actions for the movie clip. Any help or guidance would be very much appreciated. Thanks!!

FlashXML Support

Hello,

The code that you see there is supposed to be put in the html page that embeds the .swf file, not in the .fla file.

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] flashxml.net.
(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 © FlashXML.net 2009 - 2019