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

Artur

Posted 8 years ago

Good evening,
I can’t support you with FTP details as I am not directly connected to it. Although it is weird that you couldn’t find images at specified folder, please try again, addresses are:
http://fohowstore.weebly.com/uploads/7/9/9/2/7992239/5.jpg
and
http://fohowstore.weebly.com/uploads/7/9/9/2/7992239/10.jpg

I’m still hoping for your solution.

Have a nice day,
Artur

FlashXML Support

Hi,

The problem is with the paths to the images that you declared in images.xml. As the location of your images is the same with that of your XML file, there is no need to write full paths to the images. So, please edit images.xml and change the paths like this:

<photo image="10.jpg" url="http://www.flashxml.net" target="_blank" duration="4" effect="zoom" zoompercent="110" direction="out" hzoompos="left" vzoompos="right">
<head>Download the new FlashXML Banner Rotator</head><body>it's FREE</body>
</photo>

Test it and see if it works.

Artur

Posted 8 years ago

I am testing your Banner Rotator FX product.
I have copied the files into one directory on a server (files: bannerrotatorfx.swf, images.xml, settings.xml, style.css, swfobject.js, index.html and random images to display named “5.jpg“ and “10.jpg“). It is working very well using given index.html file.
However, when I upload files onto a server, it doesn’t display image files – all I can see is loading button. Tried to figure this problem out by myself, but nothing has resulted from my efforts.

Your help would be very appreciated.

Cheers,
Artur

FlashXML Support

Hi,

Please provide FTP connection details to support [at] flashxml.net to investigate further, as right now, I can’t seem to find the specified .jpg images in the upload folder:

http://fohowstore.weebly.com/uploads/7/9/9/2/7992239/

WEbman

Posted 8 years ago

Sorry, but I don’t seem to have a hotspots folder at all? This wasn’t included in the download I purchased?

FlashXML Support

Hi,

I’m sorry for this misunderstood, I thought you was referring to Panorama Viewer FX. Indeed, the path to these files is hard coded and can not be specified in a xml file. You will need to create a folder called assets in folder1 and folder2 and to copy there these two files.

WEbman

Posted 8 years ago

Hi, that all works great, thanks. The only thing now that isn’t showing is handCursor.png and close.png (X) on the popup window. I can’t seem to find the reference to these in any of the xml files. Thanks for your quick responses to my persistent questioning!

FlashXML Support

Hi,

In hotspot.xml you have set the path to another file through the value of info attribute:

info="../assets/hotspots/info/mosca1.xml"

In this file (mosca1.xml) you need to set the path for closeButton, scrollDragBar, etc.

WEbman

Posted 8 years ago

Hi the solution you have listed works, but there are no controls and no hotspot.

FlashXML Support

Hi,

You need to open the assets/skins/skin.xml and assets/hotspots/hotspots.xml and to set the correct paths. If still does not work, send us the link to your website and we will check it out.

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