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
Do you have a question?
you will get an answer in 24 hours, tops.





recep bala
Posted 11 months agois there anyway to change “Loading animation” ?
for CoverFlow FX
Hi,
Unfortunately, the Cover Flow FX doesn’t have this feature implemented.
recep bala
Posted 11 months agois there anyway to change “Loading animation” ?
Hi,
Most of our products have the possibility to change the “loading animation” but you have to tell us on which product you’re referring so we can give you the right instructions.
recep bala
Posted 11 months agodifferens pages, same settings, same swf but different images ?
how can this be possible ?
dont want to have different settings.xml files…
Hi,
If you want to have different images you also need to create different settings.xml files. The content of all settings.xml will be the same excepting the value of <assets> attribute which will point to a different images.xml.
David
Posted 11 months agoHi there,
I am trying to create a multiple image gallery where I can then zoom into an image after it has opened
Is this possible?
Many thanks,
David
Hi,
I’m sorry but we don’t have this feature implemented on any of our products.
brandon
Posted 11 months agohow do you place two different componets in one flash file (fla/swf)???
Hi,
Please follow this tutorial.