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

Jim

Posted 8 years ago

I have been having fun with the accordion flash, it works well on my site until you conduct a search, then it disappears. Since the search function prints a new webpage, I thought it was just a path problem.. I needed to define the full path so it would still work, however, I have tried several ways of doing just that, and it still does not show.
My Header script now looks like this:
<script type=“text/javascript” src=”<?=WEB_PATH?>swfobject.js”></script>
<script type=“text/javascript”>
var flashvars = {};
flashvars.folderPath = “<?=WEB_PATH?>settings.xml”;
flashvars.settingsXML= “<?=WEB_PATH?>settings.xml”;
var params = {};
params.scale = “noscale”;
params.salign = “tl”;
params.wmode = “transparent”;
params.allowScriptAccess = “always”;
params.allowFullScreen = “true”;
var attributes = {};
swfobject.embedSWF(”<?=WEB_PATH?>AccordionFX.swf”, “DivAccordionFX”, “600”, “300”, “9.0.0”, false, flashvars, params, attributes);
</script>

I have tried defining the path several ways, I have tried with and without flashvars.folderPath = “<?=WEB_PATH?>settings.xml”; and flashvars.settingsXML= “<?=WEB_PATH?>settings.xml”; and no change, it does not even try to load.

If you go to my home page and search for a song, then you will see what I am talking about http://mustation.com or you can just go directly to this search result :http://mustation.com/search/mp3/1/eagles.html

Thanks for the help.

JayC

Posted 8 years ago

oh sorry forgot to mention its on the portfolio page

FlashXML Support

Hi,

Please check your embedding code. The script tag is not closed properly( e.g: </script ). It is missing the > bracket.

JayC

Posted 8 years ago

I am trying to test out the Elite Gallery on my website. I have done no modification to it yet as I’m just trying to see how it looks. I have extracted ALL the content files in a subfolder named gallery. I have read through all 49 pages of comments and answers and tried every combination of folder paths but I can’t even get anything to show up locally. I have uploaded everything so you can check it out at the link provided.

Arnaud

Posted 8 years ago

Hi,
The gallery slideshow works well when I use it offline, But until I upload the component it can’t display the pictures.
Can you help me about that ?

Thanks a lot for those quality products.

FlashXML Support

Hi,

The path for the images are set like this: http://www.wildacre.ie/images/slide/Pic01.jpg. Please make sure that is the correct path to the files.

MATHIEU

Posted 8 years ago

Hello,

I looked at various example of FLASHXML and tried to have it integrated into a sharepoint 2007 presentation.

I tried almost all the free example, but let’s talk about 3DCarousel

When I create the shockwave flash active X in sharepoint, I have the XMLFlash logo appaering, but none of the picture … I guess it is because office is not aware of the .js file, but I have no idea where to make the right setup ?

Does this work for you ?

Thanks a lot

FlashXML Support

Hi,

Go to your content editor web and click the source editor and paste the embedding code below:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="550" HEIGHT="400" id="myMovieName">
<PARAM NAME=movie VALUE="FLASHCOMPONENT.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="/folder/FLASHCOMPONENT.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400"
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

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