Questions

Answer

How to publish a product twice on the same page

 

The answer is simple if you understand how SWF-XML-Images interact.
An article which explains this interaction would be Path issues with SWF files

So if you want to publish the same SWF twice on the same HTML page, you don’t need two SWF files nor two swfobject.js files, but you’ll need different settings.xml (e.g. settings1.xml, settings2.xml) and different images.xml files (e.g. images1.xml, images2.xml) and also different images (if you don’t want to have the same pictures obviously). You can specify in a settings.xml file which images.xml to load through assets attribute.

Note that some products have menu.xml instead of images.xml.

So on the same HTML page, you can have in the head section two references to the same SWF file, but with different settings.xml file:

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars1 = {};
flashvars1.settingsXML= "settings1.xml";
var params1 = {};
params1.scale = "noscale";
params1.salign = "tl";
params1.wmode = "transparent";
var attributes1 = {};
swfobject.embedSWF("component-name.swf", "ComponentDiv1", "600", "300", "9.0.0", false, flashvars1, params1, attributes1);

var flashvars2 = {};
flashvars2.settingsXML= "settings2.xml";
var params2 = {};
params2.scale = "noscale";
params2.salign = "tl";
params2.wmode = "transparent";
var attributes2 = {};
swfobject.embedSWF("component-name.swf", "ComponentDiv2", "300", "200", "9.0.0", false, flashvars2, params2, attributes2);
</script>

Notice I named the instances of the same SWF file ComponentDiv1 and ComponentDiv2.
Insert these two instances anywhere in your HTML document:

<div id="ComponentDiv1"></div>

<div id="ComponentDiv2"></div>

In settings1.xml and settings2.xml, make sure you’re referring to a proper imagesXML file (like images1.xml and images2.xml), in which you’ll edit the paths and other details of the images for the two different components.

Comments

Jade

Posted one year ago

Hello,

I tried to follow your tutorial in order to display 2 menus on different pages but I got a failure saying :

var flashvars2 = {}; flashvars2.settingsXML= “settings2.xml”; var params2 = {}; params2.scale = “noscale”; params2.salign = “tl”; params2.wmode = “transparent”; var attributes = {}; swfobject.embedSWF(“3DCarouselMenuFX.swf”, “CarouselDiv2”, “600”, “400”, “9.0.0”, false, flashvars2, params2, attributes2);

Your help would be greatly appreciated since my website is completely down ! Thanks a lot

Eduardo Siroti

Posted one year ago

Hello
How do I change only images.xml? No need to change because some setting.xml is standard.
Example:
flashvars1.imagesXML = “images.xml”;
flashvars2.imagesXML = “images2.xml”;
flashvars3.imagesXML = “images3.xml”;
Can you help
Thanks

FlashXML Support

Hi,

If you want to change images.xml you have to open settings.xml and change the value of assets attribute.

Darryl Neal

Posted one year ago

I purchased your PhotoDraggerFX and I am trying to add it to 2 different pages and have been through you comments but nothing has helped, I cannot get it to work no matter what I try.

I have uploaded it to the server at the URL attached but this hasn’t worked either. Could you please shed some light on why this won’t work?

Thanks,
Darryl

FlashXML Support

Hi,

Your settings2.xml file has the content that your images2.xml should it has. The settings2.xml file should have the same structure as settings.xml.

mani

Posted one year ago

how we attach other pages with one site?

FlashXML Support

Hi,

Give us more details on what are you trying to do.

Philippe

Posted one year ago

Hi,
I have tried to insert 2 circular galleriesFX on a site I am building.
It works fine if played locally on my cpu, but as soon as I upload it the galleries are not loading.
I have put everything in the same directory as mentioned in your explanation. Must have done something wrong.
Any advice/help much appreciated.
Thx

FlashXML Support

Hi,

Just looked at your site and discovered one missing image red-001_blkxl.jpg. If you add this image you should have no more problems. Everything else looked OK from here.

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 - 2012