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

johnny

Posted 8 years ago

hey i am having trouble getting the textmenufx to work on my site
i put this in the head
<script>
<script type=“text/javascript” src=“TextMenuFx/swfobject.js”></script> <script type=“text/javascript”> var flashvars = {}; flashvars.folderPath = “greenvistava/TextMenuFX/” var params = {}; params.scale = “noscale”; params.salign = “tl”; params.wmode = “transparent”; var attributes = {}; swfobject.embedSWF(“greenvistava/TextMenuFX.swf”, “TextMenuFXDiv”, “600”, “300”, “9.0.0”, false, flashvars, params, attributes); </script>
</script>

and this in the body <div id=“DivTextMenuFX”></div>

any ideas on what i am doing wrong here?

FlashXML Support

Hi,

Sorry for the inconvenience, but we have checked the link provided and there was no embedding code of the component.

Please send us the correct link where you embedded the Text Menu FX.

Fred

Posted 8 years ago

I think I am missing something in this. I put this script into my header and then this into the body and I specified the path on my server where the flash gallery is and I don’t get anything. Help

<script>
<script type=“text/javascript” src=“swfobject.js”></script>
<script type=“text/javascript”>
var flashvars = {};
flashvars.folderPath = “http://www.fatactgraphics.com/hve/flash/”;
var params = {};
params.scale = “noscale”;
params.salign = “tl”;
params.wmode = “transparent”;
var attributes = {};
swfobject.embedSWF(“CoverFlowFX.swf”, “DivCoverFlowFX”, “600”, “320”, “9.0.0”, false, flashvars, params, attributes);
</script>

This went into the body:
<div id=“DivCoverFlowFX”></div>

What am I doing wrong?

FlashXML Support

Hi,

You should also set the path to the swf file.
e.g:

swfobject.embedSWF(“http://www.fatactgraphics.com/hve/flash/CoverFlowFX.swf”, “DivCoverFlowFX”, “600”, “320”, “9.0.0”, false, flashvars, params, attributes);

or

swfobject.embedSWF(“flash/CoverFlowFX.swf”, “DivCoverFlowFX”, “600”, “320”, “9.0.0”, false, flashvars, params, attributes);

marjan

Posted 8 years ago

Hi,
I want to use coverflow. I have a problem with the path of images. My html page is in different path from product path and also my images are in the different folder. I set the path of images in images.xml and set the folderpath of coverflow. But flash can’t find my images. Is it necessary that images be in the product folder ?

FlashXML Support

Hi,

Provide us with the link to your website and we will check it out.

Susheel

Posted 8 years ago

Hello Team, I have recently purchased the Flash XML 3D Carousel. I want to embed it in my .aspx page. I am placing the files for 3D Carousal in root/Carousal/VarshikUtsav2010/Test. The .aspx page is in root. I am using Master pages in asp.net. So the Pictures page is inheriting the master page. Now in Picture.aspx page inside <asp:Content ID=“Content22” ContentPlaceHolderID=“ContentPlaceHolder1” Runat=“Server”>
<!—Start:Carousal Section—> <meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” /> <script type=“text/javascript” src=“Carousal/VarshikUtsav2010/Test/3DCarouselMenuFX.fla”></script> <script type=“text/javascript”> var flashvars = {}; var params = {}; flashvars.folderpath=“Carousal/VarshikUtsav2010/Test”; params.scale = “noscale”; params.salign = “tl”; params.wmode = “transparent”; var attributes = {}; swfobject.embedSWF(“Carousal/VarshikUtsav2010/Test/3DCarouselMenuFX.swf”, “CarouselDiv”, “800”, “600”, “9.0.0”, false, flashvars, params, attributes); </script>
</asp:Content>

When I run the application I get error saying swfobject not defined. Can you please help me with this?

Thanks and regards,
Susheel

FlashXML Support

Publish the Component.swf on your .aspx page using the static method.

<object classid=“clsid27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0” width=“600” height=“260” id=“gal” align=“middle”>       <param name=“allowScriptAccess” value=“sameDomain” />    
 <param name=“allowFullScreen” value=“false” />    
 <param name=“quality” value=“high” />    
 <param name=“bgcolor” value=”#ffffff” />    
 <param name=“scale” value=“noscale” />    
 <param name=“salign” value=“tl” />    
 <param name=“movie” value=“Component.swf” />   

<embed src=“Component.swf” width=“600” height=“260” bgcolor=”#ffffff” name=“ComponentName” quality=“high” scale=“noscale” and salign=“tl” align=“middle” allowScriptAccess=“sameDomain” allowFullScreen=“false” type=“application/x-shockwave-flash” pluginspage=“http://www.macromedia.com/go/getflashplayer” ></embed> </object>

Tomas Fernandez

Posted 8 years ago

I just purchased another script its the Product Viewer FX, this is what I got it to look like http://bidzeez.com/2.0/Productwinners/ But I cant get it to show on my web page http://bidzeez.com/2.0/ under the Get Free Bids and the Promo Code bars please help ASAP!

Thank you

FlashXML Support

Hi,

We have checked your website and the component is working properly. Let us know if there are any other issues.

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