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

ms

Posted 8 years ago

dear support,Thank you very much for quick reply,I have followed your sample video for publish 2 products in one page and have followed the instructions as per the video,but end result was white page with 2logos (link) for adobe flash download, even after downloading flash and installing it nothing happened.There may be a small mistake, please correct it .
Following is my code for component 1 and component2,please let me have correct code as I want to publish dock flash gallery fx as component1, and 3dbanner fx as compnent2,I eagerly looking forward to hearing from you,

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” lang=“en” xml:lang=“en”> <head> <title></title> <meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” /> <script type=“text/javascript” src=“component1/swfobject.js”></script> <script type=“text/javascript”> var flashvars = {}; flashvars.folderPath = “component1/”; var params1 = {}; params1.scale = “noscale”; params1.salign = “tl”; params1.wmode = “transparent”; params1.allowfullscreen = “true”; var attributes1 = {}; swfobject.embedSWF(“component1/DockGalleryFX.swf”, “DockGalleryFXDiv”, “100%”, “100%”, “9.0.0”, false, flashvars1, params1, attributes1); var flashvars = {}; flashvars.folderPath = “component2/”; var params2 = {}; params2.scale = “noscale”; params2.salign = “tl”; params2.wmode = “transparent”; var attributes2 = {}; swfobject.embedSWF(“component2/3DBannerFX.swf”, “3DBannerFXDiv”, “100%”, “100%”, “9.0.0”, false, flashvars2, params2, attributes2);

<div id=“DockGalleryFXDiv1”></div>

<div id=“3DBannerFXDiv2”></div>

</script> <style type=“text/css”> html, body , #DockGalleryFXDiv { margin: 0; padding: 0; height: 100%; } #DockGalleryFXDiv { float: left; } </style> </head> <body> <div id=“DockGalleryFXDiv”> <a href=“http://www.adobe.com/go/getflashplayer”> <img src=“http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif” alt=“Get Adobe Flash player” /> </a> </div> <div id=“3DBannerFXDiv”><a href=“http://www.adobe.com/go/getflashplayer”> <img src=“http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif” alt=“Get Adobe Flash player” /> </a> </div> </body> </html>

Thank you regards
ms

ms

Posted 8 years ago

Dear sir, we have come across your site and got some amazing products you offer,
My first question is-
1) I own 4 photography,websites,if I take your personal membership can I use all product in my 4 websites?
2)I do not have have html knowledge,and I have downloaded un paid version of 3d bannerfx and dockgalleryfx, and paste it in one of my domain folder first when I paste dock gallery effects it was fine and the product was running.but when I paste the 3dbannerfx on that folder , and modify index html as directed in your instruction.but when I move index.html of the 3d banner to my domain folder which already have index.html for thedock galleryfx . so we are getting 2 of index.html files.inside my domain folder. please tell me how to fix it?

3) If I add several products in one site,having different index.html, for each product how can it be fixed?

I am excited to see your reply,asap please.
regards
ms

Nadeesha

Posted 8 years ago

how to remove flashxml.net label from my web site

FlashXML Support

Hi,

Please read this FAQ

ms

Posted 8 years ago

Dear sir, we have come across your site and got some amazing products you offer,
My first question is-
1) I own 4 photography,websites,if I take your personal membership can I use all product in my 4 websites?
2)I do not have have html knowledge,and I have downloaded un paid version of 3d bannerfx and dockgalleryfx, and paste it in one of my domain folder first when I paste dock gallery effects it was fine and the product was running.but when I paste the 3dbannerfx on that folder , and modify index html as directed in your instruction.but when Imove index.html of the 3d banner to my domain folder which already have index.html for thedock galleryfx . so we are getting 2 of index.html files.inside my domain folder. please tell me how to fix it?

3) If I add several products in one site,having different index.html, for each product how can it be fixed?

I am excited to see your reply,asap please.
regards
ms

FlashXML Support

Hi,

If you want to use the products in multiple non-commercial applications owned by:
a) you or your non-profit organization – you must purchase a Personal License for each different application OR you can purchase the Special License;
a) your clients – you must purchase a Personal License for each different application. The Special License does not apply in this case. If you want to use the product in an unlimited number of applications owned by your clients you must purchase the Extended License.
Further information can be found on this page.
Regarding your issue with the HTML files, the solution is to rename one of the HTML files and call it index2.html, for instance.
To embed different components into different pages please read this FAQ article.

Jim

Posted 8 years ago

I made the post yesterday about path problems, but, I have had to comment your script out for now as it was in conflict with my video player.. it made the video player auto play on page load. So I would need to fix that problem first.

Thanks.

FlashXML Support

Hi,

Please let us know when you have embedded the product so that we can check out the matter at hand.

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