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

Alex

Posted 7 years ago

Hi:

I purchased the Flash-menu (commercial)... It works beautiful on my personal PC, where I test it.

However, when I unzipped and built on my webserver (Joomla/PHP), nothing shows at all other then the “stage area,” no jpgs nor pngs. Empty window.

I carefully configured the xml files (content and settings), made the proper change on the php file responsible for the main page display. The menu works from a html index but how about a PHP file?

My wesite is at http://powerclassroom.net/

My intention is to replace the current demo-lesson play menu with your Flash version. I reached the end of the road….. PLEASE HELP ME!

Alex

FlashXML Support

Hi,

I checked your website but I have not found where have you tried to embed one of our components. Maybe there is a misunderstanding, because we do not have a component that is called Flash-menu and your email address is not included in our database.

Nimoy Burrowes

Posted 7 years ago

Is there an easy way to add or edit events in the calender?

FlashXML Support

Hi,

Unfortunately the only way to edit the calendar events is manually through Events.xml.

collamack

Posted 7 years ago

my flash fail to display in my website.

<script type=“text/javascript”> var flashvars = {}; flashvars.folderPath = “http://www.cp-malaysia.com/4/templates/box_business_blue/images/slideshow/”; var params = {}; params.scale = “noscale”; params.salign = “tl”; params.wmode = “transparent”; params.allowfullscreen = “true”; var attributes = {}; swfobject.embedSWF(“http://www.cp-malaysia.com/4/templates/box_business_blue/images/slideshow/BannerRotatorFX.swf”, “BannerRotatorFXDiv”, “780”, “235”, “9.0.0”, false, flashvars, params, attributes);
</script>
<body>
<div id=“BannerRotatorFXDiv”></div>
</body>

when i try to open http://www.cp-malaysia.com/4/templates/box_business_blue/images/slideshow/BannerRotatorFX.swf directly, it shows only the button & loading display. but no image.

FlashXML Support

Hi,

The BannerRotatorFX.swf files is missing from the slideshow folder. Please upload again this file.

Brent

Posted 7 years ago

I have installed two of your products, Banner Rotator FX and News Ticker FX. I believe I have installed and configured both of them correctly, and they both work fine when I view them locally. They do not work, however, when I publish them. I have made sure all references are relative, and they work fine when I move everything around to different folders.

FlashXML Support

Hi,

I have checked your site and there seems to be 2 things wrong with your component’s’ installation.
1. The News Reader is trying to read a RSS from another site, http://www.indystar.com/ – this is not working as it is looking for a file called crossdomain.xml which is needed to allow Flash to access files from other domains (sites) other than the one you have the SWF on. You can read more about this in our FAQ here. The idea is that you have to allow the News Reader to read files from other domains.
2. The Banner Rotator – the embedding code points to the SWF being in this place:
http://qualitymill.com/qmstv/banner_rotator/BannerRotatorFX.swf
but at this location there doesn’t seem to be anything on your site.

Rich Nya

Posted 7 years ago

Hi, I can’t not get the following code to work. Please help!

</script>
<script type=“text/javascript” src=“http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js”></script>
<script type=“text/javascript” src=“http://www.wvu.edu/~agexten/js/gaEventTracker.js”></script>

<script type=“text/javascript” src=“http://www.wvu.edu/~agexten/aw/swfobject.js”></script>
<script type=“text/javascript”>
var flashvar = {};
flashvars.folderPath = “http://www.wvu.edu/~agexten/aw/”;
var params = {};
params.scale = “noscale”;
params.salign = “tl”;
params.wmode = “transparent”;
params.allowScriptAccess = “always”;
params.allowFullScreen = “true”;
var attributes = {};
swfobject.embedSWF(“http://www.wvu.edu/~agexten/aw/MediaSlideshowFX.swf”, “DivMediaSlideshowFX”, “600”, “300”, “9.0.0”, false, flashvars, params, attributes);
</script>

FlashXML Support

Hi,

The problem was with the name of flashvar variable, but I checked your website and I noticed that you have fixed it already.

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