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

raza

Posted 8 years ago

<object classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0” width=“600” height=“300” id=“Flash” align=“middle”>
<param name=“movie” value=“flash/component1/3DCarouselMenuFX.swf” />
<param name=“quality” value=“high” />
<param name=“bgcolor” value=”#ffffff” />
<param name=“scale” value= “noscale” />
<param name=“salign” value=“tl” />
<param name=“allowScriptAccess” value=“always” />
<param name=“allowFullScreen” value=“false” />
<param name=“flashvars” value=“folderPath=/flash/component1/”>
<embed src=“flash/component1/3DCarouselMenuFX.swf” scale=“noscale” quality=“high” bgcolor=”#ffffff” width=“600” height=“300” name=“Flash” align=“middle” allowScriptAccess=“always” allowFullScreen=“false” salign=“tl” flashvars=“folderPath=/flash/component1/3DCarouselMenuFX.swf” type=“application/x-shockwave-flash” pluginspage=“http://www.adobe.com/go/getflashplayer” />

wer du i put this code betweent head and head or head and body

raza

Posted 8 years ago

i dont have a webpage because im designing it on dreamweaver so could you give me a correct code for dreamweaver

<script type=“text/javascript” src=“flash/component1/swfobject.js”></script> <script src=“Scripts/swfobject_modified.js” type=“text/javascript”></script> <script type=“text/javascript”> var flashvars1 = {}; flashvars.folderPath = “flash/component1/”; var params1 = {}; params1.scale = “noscale”; params1.salign = “tl”; params1.wmode = “transparent”; var attributes1 = {}; swfobject.embedSWF(“flash/component1/3DCarouselMenuFX.swf”, “3DCarouselMenuFXDiv”, “600”, “400”, “9.0.0”, false, flashvars1, params1, attributes1); </script>

FlashXML Support

Hi,

Please try to use the following example of embedding code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="600" height="300" id="Flash" align="middle">
<param name="movie" value="flash/component1/3DCarouselMenuFX.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="scale" value= "noscale" />
<param name="salign" value="tl" />
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="flashvars" value="folderPath=/flash/component1/">
<embed src="flash/component1/3DCarouselMenuFX.swf" scale="noscale" quality="high" bgcolor="#ffffff" width="600" height="300" name="Flash" align="middle" allowScriptAccess="always" allowFullScreen="false" salign="tl" flashvars="folderPath=/flash/component1/3DCarouselMenuFX.swf" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>

raza

Posted 8 years ago

HI THIS IS MY CODING WHICH IM DOING IN DREAMWEAVER, BUH FOR SOME REASONS IT IS NOT WORKING

<script type=“text/javascript” src=“flash/component1/swfobject.js”></script> <script src=“Scripts/swfobject_modified.js” type=“text/javascript”></script> <script type=“text/javascript”> var flashvars1 = {}; flashvars.folderPath = “flash/component1/”; var params1 = {}; params1.scale = “noscale”; params1.salign = “tl”; params1.wmode = “transparent”; var attributes1 = {}; swfobject.embedSWF(“flash/component1/3DCarouselMenuFX.swf”, “3DCarouselMenuFXDiv”, “600”, “400”, “9.0.0”, false, flashvars1, params1, attributes1); </script>

WHAT AM I DOING WRONG AND ALSO I TRIED 2 PUT IN ANOTHER FLASHXML PRODUCT BUT NOTHING SHOWS UP WHEN I PREVIEW IT IN INTERNET EXPLORER AND GOOGLE CHROME , WHAT WILL THE CODES B TO PUT MULTIPLE FLASH XMLS

FlashXML Support

Hi,

Could you please provide a link to the webpage where you are embedding the component to tell you exactly what’s wrong, as the code seems to be OK.

Eric

Posted 8 years ago

Is there a way to add video? either an flv file or link to vimeo or youtube? A few of the older galleries had this function, what happened?

FlashXML Support

Hi,

Some of our galleries are able to play local FLV files, and none of them can play youtube videos, yet.
To what component are you referring to? You add the videos through the XML that loads the images, respecting the video file syntax:

<video media="video/video.flv" image="video/video.jpg" skin="assets/skins/videoSkin1.xml" backColor="0xff0000" backAlpha="1" autoplay="false"></video>

Andre

Posted 8 years ago

Hello! I get some errors in IE. I use the the scrolling gallerie FX. I have modified the Module for joomla and use more than one gallerys on my site. everything looks fine, but in IE i get this popup:

TypeError: Error #1010: Ein Begriff ist nicht definiert und hat keine Eigenschaften. at net.flashXML.gallery.galleryConnector::SplitGalleryConnector/stageResize(

I dont know, where s the bug, hop anyone can help me. Thanks!!

FlashXML Support

Hi,

I have checked your site in IE, 7,8 and 9 and the gallery is working fine. I can only recommend that you update your Adobe Flash Player and IE to the latest version.

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