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

mario

Posted 7 years ago

Hi, i tried using your banner rotator fx and it works great. The only problem is that it plays on the upper left side of a white box a. When i make the banner larger the white box follows. The bigger the banner, the bigger the white box. I wanted to try it to see if it suits my needs before i purchase and is not up on any web site yet. Is this problem because of the demo. I appreciate any help you can offer. Oh and it’s not up on a site Thanks

FlashXML Support

Hi,

Please send to support [at] flashxml.net the component’s archive, or some screenshot/videos, or try to publish your website on a free host, for test, so we can check where the problem is.

Nicholas Parnell

Posted 7 years ago

I created my photo wall in a folder on a test html page http://randirahm.com/Photo-Wall/test.htm and know that Im happy with it I wish to move it http://randirahm.com/ but I can not figure out this path stuff.

I made the wall in a folder called Photo-wall which has all the folders in it.

Help!

FlashXML Support

Hi,

You have to specify the correct path for swfobject.js, folderPath and SWF like in the following example:

<script type="text/javascript" src="Photo-Wall/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.folderPath = "Photo-Wall/";
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
params.allowScriptAccess = "always";
params.allowFullScreen = "true";
var attributes = {};
swfobject.embedSWF("Photo-Wall/PhotoWallFX.swf", "DivPhotoWallFX", "800", "700", "9.0.0", false, flashvars, params, attributes);
</script>

Markus

Posted 7 years ago

Hey,

I’ve got a problem with the 3d carousel I want to insert in a website. The only thing I see on my page, is the right and left arrow of the 3d carousel. The pictures won’t show up but I don’t know why. The images are in the correct folder as well as the settings.xml and images.xml.

flashvars.folderPath = "http://test.xxxx-xxx.com/fileadmin/user_uploads_Polytec-PT/Flash_Karussell2/"

swfobject.embedSWF("http://test.xxxx-xxx.com/fileadmin/user_uploads_Polytec-PT/Flash_Karussell2/3DCarouselMenuFX.swf", "CarouselDiv", "470", "400", "9.0.0", false, flashvars, params, attributes);

I hope this is no problem because of the test-domain I have here.

Thanks for your help,
Markus

FlashXML Support

Hi,

Please send us a link to your website where you tried to install our product.

Sven

Posted 7 years ago

Hello,

I desparately ask for your support as I have spent too much time already without succes on solving this issue:
I’m using the Photo Flipper FX flash but the flash is not displaying the images at all but hangs in the loading phase.
The issue can be viewed here: http://www.wailando.de/shop/klassische-reitmode

Can you support, please?

Thanks and best regards, Sven

FlashXML Support

Hi,

The problem is that Dropbox adds a random ?UID number to all the XML files. I have also tried loading a component from Dropbox and it just won’t work. There is no way I see to remove the UID from the XML files.

Please use another filehosting site, or host the files directly on your domain. I recommend any free webhosting websites, like 000webhost.com or byethosting.com.

Cristi

Posted 7 years ago

I can’t make it work in Magento.. Can you help me?
I enetred this code...

FlashXML Support

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.

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