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

alexandros

Posted 9 years ago

can i load externally an swf with a component to a AS2 project via

loader.loadClip(imageURL,holder_mc) fanction??...

in other components work.

FlashXML Support

Hi,

Yes you can as long as the SWF file is also created in AS2.

Pat

Posted 9 years ago

I am totally confused… I purchased the scroller basic in December and since this was now listed as obsolete I purchased the image scroller Xm today… when I downloaded I ended up with two folders…($27) the commercial and the image scroller commercial and image scroller(1)... neither show up in my portfolio as being purchased. Now I am attenmpting to make this work. Since I used the basic before and had it working correctly, I thought htis would be an easy task, however, I am totally confused. I edited the XML settings file and placed my 7 images in the images file. I placed the code <div class=“fltrt” id=“ImagesScrollerDiv”><script type=“text/javascript” src=“swfobject.js”></script>
<script type=“text/javascript”>
var flashvars = {};
flashvars.folderPath = “image-scroller(1)/”
flashvars.settingsXML = “settings.xml”;
var params = {};
params.scale = “noscale”;
params.salign = “tl”;
params.wmode = “transparent”;
var attributes = {};
swfobject.embedSWF(“scroller.swf”, “ImageScrollerDiv”, “700”, “200”, “9.0.0”, false, flashvars, params, attributes);
</script>
<object id=“FlashID” classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” width=“700” height=“200”> <param name=“movie” value=“scroller.fla” /> <param name=“quality” value=“high” /> <param name=“wmode” value=“opaque” /> <param name=“swfversion” value=“6.0.65.0” /> <param name=“expressinstall” value=“Scripts/expressInstall.swf” /> <!— Next object tag is for non-IE browsers. So hide it from IE using IECC. —> <!—[if !IE]>—> <object type=“application/x-shockwave-flash” data=“scroller.fla” width=“700” height=“200”> <!—<![endif]—> <param name=“quality” value=“high” /> <param name=“wmode” value=“opaque” /> <param name=“swfversion” value=“6.0.65.0” /> <param name=“expressinstall” value=“Scripts/expressInstall.swf” /> <!— The browser displays the following alternative content for users with Flash Player 6.0 and older. —> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><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” width=“112” height=“33” /></a></p> </div> <!—[if !IE]>—> </object> <!—<![endif]—>
</object>
</div>

I understood that I needed to load the entire folder image_scroller(1) with the new changes into the root folder of my site. However, the scroller does not appear on the site or even in the local copy of the site, designed in Dreamweaver CS4 — what am I doing wrong.

FlashXML Support

Hi,

Could you please give me a link to your website?
I’ll check it out.

Emanuele

Posted 9 years ago

Hi,
I am trying to learn how to provide a 3d carousel with images on my company’s website.
I have access to the server and installed what you provide.
I think I don’t have access to the html file itself so i don’t know how to make the carousel work.

FlashXML Support

Hi,

Try to copy the html file on your computer.
Make the correct modifications on it and after that, upoad it on the server, replacing the old one.

Or you could create a new folder on the server where you place all the files including the html file.

Todd

Posted 9 years ago

Hi Support,

Thank you for the quick response. Sorry for not being as clear regarding what IE this does not work on. You stand correct about it working on all browsers, but when I try and view it in IE on Windows 7, I am having trouble. Any other thoughts and again thank you

FlashXML Support

Hi,

Could you please give me a link to your website?
I’ll check it out.

Todd

Posted 9 years ago

Support,

I am also having trouble with getting IE to view my Banner Rotator FX. It again works perfect in FireFox, Safari, and Crome. I have read through all the comments about people having the same problem.

I have tried adding and using: flashvars.folderPath = “xxxx/”; and
swfobject.embedSWF(”xxxx.swf” but I must be getting the naming convention wrong.

My current folder setup is like this: I have my root folder. Inside the root folder, I have my “index” which is http://smokeecigsusa.com. The banner.swf, images.xml, settings.xml, style.css, and swfobject.js are sitting directly in my root folder. I also have an “images” folder inside my root folder. This is where all my images are.

How do I setup this to work for IE? I want to buy this, but want to make sure it works on my site first. Please help and it would be very appreciated if you were very detailed for me.

What is it I need to change in this so its customized to my site?
<script type=“text/javascript” src=“swfobject.js”></script>
<script type=“text/javascript”>
var flashvars = {};
var params = {};
params.scale = “noscale”;
params.salign = “tl”;
params.wmode = “transparent”;
var attributes = {};
swfobject.embedSWF(“banner.swf”, “BannerDiv”, “600”, “260”, “9.0.0”, false, flashvars, params, attributes);
</script>

FlashXML Support

Hi,

I’ve checked your website and seems to me that works fine with all browsers.

Anyway have you tried to embed the banner.swf 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="500" 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="banner.swf" />
 <embed src="banner.swf" width="500" height="260" bgcolor="#ffffff" name="gal" 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>

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