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

waltex 2

Posted 28 days ago

works in a blank page as you see:
http://www.sciclubcastrezzato.com/test.html-
Not yet in
http://www.sciclubcastrezzato.com/album_01.html

grazie !!

help

Posted 28 days ago

Several attempts will not work
It works the link “Test”

grazie

FlashXML Support

Hi,

Try to use the following code for embed:

<script type="text/javascript" src="dock-gallery/swfobject.js"></script>
 <script type="text/javascript">
 var flashvars = {};
 flashvars.folderPath = "dock-gallery/";
 var params = {};
 params.scale = "noscale";
 params.salign = "tl";
 params.wmode = "transparent";
 params.allowfullscreen = "true";
 var attributes = {};
 swfobject.embedSWF("dock-gallery/DockGalleryFX.swf", "DockGalleryFXDiv", "1000", "750", "9.0.0", false, flashvars, params, attributes);
 </script>

And add <div id=“DockGalleryFXDiv”></div> in the body section of your HTML page, where you want the Flash to show up.

Douglas Sheppard

Posted one month ago

Hello,
I downloaded and installed 3D Carousel. What a Wonderful App.
Configured settings.xml and working fine.
Configured images.xml and added more image tags for a total of 11 images but only 5 show on website.

FlashXML Support

Hi,

Please send to support [at] flashxml.net the link to your website or the component’s archive (with your images) and we will check it out.

mario

Posted 2 months 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 2 months 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>

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 - 2012