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

Brieuc Kestens

Posted 9 years ago

this is the URL with the problem: http://brieuckestens.squarespace.com/mes-albums/
this is my setting.xml file: http://brieuckestens.squarespace.com/storage/settings.xml
this is my images.xml file: http://brieuckestens.squarespace.com/storage/images.xml
and finally my .swf file: http://brieuckestens.squarespace.com/storage/accordion.swf

FlashXML Support

Hi,

Please re-download the archive. We made some updates.

Brieuc Kestens

Posted 9 years ago

Hi,

I spent all the night (8 hours…) trying to link my .swf file into my webpage. I followed the instructions on this site but nothing happened. I’ve read over and over again my setting.xml and images.xml files and they appear to work correctly when I do a preview on Flash or when I open the .swf file. On my site appears only several ‘circular waiting symbols’. Thank you in advance for your help!

FlashXML Support

Hi,

Could you please give me the url to your webpage. I’ll make it work for you.
You can send me a PM with your address.

Andre

Posted 9 years ago

This is the error I recieve when I open my webpage in IE?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.3; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET CLR 3.0.30729)
Timestamp: Fri, 8 Jan 2010 16:00:04 UTC

Message: ‘swfobject’ is undefined
Line: 15
Char: 2
Code: 0
URI: http://www.krugernow.co.za/

FlashXML Support

Hi,

That error is weird. Normally works with frames too.
Try to make the embedding like this instead of creating a new frame:

<script type="text/javscript" src="menu/swfobject.js"></script>

<script type="text/javascript"> 
var flashvars = {}; 
flashvars.folderPath = "menu/"; 
flashvars.settingsXML = "settings.xml"; 
var params = {}; 
params.scale = "noscale"; 
params.salign = "tl"; 
params.wmode = "transparent"; 
var attributes = {}; 
swfobject.embedSWF("menu/carousel.swf", "CarouselDiv", "600", "400", "9.0.0", false, flashvars, params, attributes);
</script>

<div id="CarouselDiv"></div>

You write this piece of code in your main html file. That runs the first when you enter on your website.

william

Posted 9 years ago

Hi i have the same problem too i have bought flash image scoller. When doing it on my computer i am able to see. But after uploading into my server it display blank. Here is the site url sean.metrios4u.com

FlashXML Support

Hi,
You refere to the fact that when you are with the mouse over a picture, the text won’t be displayed?
If yes try to set the value of fontFace in the settings.xml file to verdana.

Ant Forshaw

Posted 9 years ago

Hi guys,

I’m using the non-free version of the banner rotator FX (very good btw) but I’ve got a bit of an odd problem at the moment with it simply not working on some machines. It was working fine, and the website was migrated to a new server last week. The banner rotator I’m inserting works everywhere apart from on just a few PCs using IE (7 and 8), which are all within an office network. Are there any things that could stop it from working within just that set of PCs? I’ve pretty much exhausted all of my options here and have embedded the same banner on various test pages successfully using swfobject along with Adobe’s own recommended techniques which all work outside of that network.

Thanks in advance – I can post some example embed code if necessary, but as it works everywhere else I’m not sure there’s a problem with that per se.

FlashXML Support

IE7 don’t handles so good the embedded flash content.
This happens also when you create a web page (you need to specify in the code, special cases for IE).
So this is a browser issue. With other browsers works perfectly.

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