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

Thomas

Posted 8 years ago

Hello I purchased EliteGallery. I am using EliteGallery in my flash website. I am using 4 of the EliteGallery on different pages on my website. I am having trouble with when I click my button to transition to the next page it loads, the gallery but it is the same gallery on each page. I went in changed the settings, naming the files in number order and followed your directions on your various loading methods. I am receiveing this error

TypeError: Error #1009: Cannot access a property or method of a null object reference. at net.flashXML.gallery.galleryConnector::SplitGalleryConnector/resizeAndPositionGallery() at net.flashXML.gallery.galleryConnector::SplitGalleryConnector/set frameSize() at Website_fla::MainTimeline/__setProp___id0__Scene1_pages_60() at Website_fla::MainTimeline/frame61() at flash.display::MovieClip/gotoAndStop() at Website_fla::MainTimeline/onillustrationClick()
FXConnector: we have no contextMenu for navigation
Dock Menu: image not found

I am a beginner at flash so please explain to me in-depth if possible. Basically I am trying to have 4 EliteGalleries, Each on a different page in my website, Each has different images.

Please help I am so lost with what to do

FlashXML Support

Hi,

Right now is not possible to add more than one of our gallery in a Flash project. But our developers are looking into it and we will update the component as soon as possible.

robert

Posted 8 years ago

Hi, somehow I can’t get this 3d-banner to work. It seems like a wrong path issue but I can’t find it. I tried to use only absolute paths. Here are the relevant files:

Settings XML:
http://www.optik-michaelis.de/files/3d-banner/settings.xml
(See link to the images.php)

URL:
http://www.optik-michaelis.de/xindex.php
(See all other links in the source code, it’s the second script in the Header, you can ignore the first one)

By the way: It works locally!

Can you please give me a hint?

Thanks very much!

Best regards
robert

helefa

Posted 8 years ago

does this program work with magento?

FlashXML Support

Hi,

We do not have to much knowledge about how to integrate our components in magento sites but the embedding method should be similar with the one from Installation Instructions for general website. You could try it with the free package, also.

Barbara

Posted 8 years ago

Hi,
it’s me again. I changed the path like this:

flashvars.folderPath = “./ordner_mit_imagescroller/”;

and now it works in preview and online in IE, Safari and Firefox but still not properly in Opera. In Opera I’ve to click on another tab and then again on my page before it works. How can I solve this problem?
Thanks for your help in advance,
Barbara

FlashXML Support

Hi,

I checked your website in Opera 11.01 and the image scroller works just fine.

Barbara

Posted 8 years ago

Hi,
here is finally the link to my website. When I tested the website on a locally basis the imagescroller showed in IE, Firefox and Safari but not in Opera when I set it like this:

var flashvars = {};
flashvars.folderPath = “ordner_mit_imagescroller/”;
var params = {};
params.scale = “noscale”;
params.salign = “tl”;
params.wmode = “transparent”;
var attributes = {};
swfobject.embedSWF(“ordner_mit_imagescroller/ImageScrollerFX.swf”, “ImageScrollerFXDiv”, “1000”, “373”, “9.0.0”, false, flashvars, params, attributes);
</script></head>

Then I changed it to the form you suggested:

var flashvars = {};
flashvars.folderPath = “F:/bhp_weiss_rot/ordner_mit_imagescroller/”;
var params = {};
params.scale = “noscale”;
params.salign = “tl”;
params.wmode = “transparent”;
var attributes = {};
swfobject.embedSWF(“F:/bhp_weiss_rot/ordner_mit_imagescroller/ImageScrollerFX.swf”, “ImageScrollerFXDiv”, “1000”, “373”, “9.0.0”, false, flashvars, params, attributes);
</script></head>

Now it works locally only in IE and uploaded in none of the browers.

I guess somewhere is a small fault and I would be very grateful for your help because I like the imagescroller so much and would like to have it on the first page of my site.

Regards
Barbara

FlashXML Support

Hi,

The problem is with your embedding code.

The folderPath and the path to the swf set in the embedding code of the page should be relative to a file or folder present in domain or other domains, not from a local folder on your computer.

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