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

0l3er

Posted 5 months ago

How can I post two same joomla flashxml modules (non plugins) on the same page?

lisaaa

Posted 6 months ago

Hi!
First of all: Great support, thanx!

My Problem:
I want to have two different popout-galleries on my joomla-website. So I did the changes mentioned above in the tutorial. I made two different settings.xml´s (settings1.xml, settings2.xml) and also two different images.xml (images1.xml and images2.xml).

Then I changed the attributes on my joomla-content like this: {popoutgalleryfx settings=“settings2.xml”}{/popoutgalleryfx}, but it doesn´t work at all.

The page is just empty and in the html-code of my page I get this error-message:
<!— invalid path to the settings XML file, please use valid plugin parameter values —>

What did O do wrong here?

WIth nice regards

Andrew

Posted 7 months ago

Hi!
How do i use <assets> attribute in my settings1.xml when i want to specify big.1xml & thumbs1.xml? I’m trying to configure Photo Gallery FX.
Thank you in advance.

FlashXML Support

Hi,

The big.xml is loaded by the settings.xml found in the holder folder, while the tumbs.xml are loaded by the settings.xml in the ImageScrollerFX. You can read more about it this FAQ, publishing galleries multiple times

Alan

Posted 8 months ago

Having two products (SWF) in the same HMTL page, can I hide/unhide them according to a selection on the same page? if so, how? I’ve tried putting the instances each within another <div> and then using the visibility property on them, but I could not get it to work. Tks

FlashXML Support

Hi,

I suggest you to use the display property.
To hide:

<div style="display:none">
 <div id="ComponentDiv"> 
 </div>
</div>

To display:
<div style="display:block">
 <div id="ComponentDiv"> 
 </div>
</div>

chetan n

Posted 9 months ago

how to increase the window size of the blurmenufx effect?

FlashXML Support

Hi,

Please open settings.xml and change the value of componentWidth and componentHeight. Also, you will need to change the value for width and height in the embedding code if you use the component in a general website:

swfobject.embedSWF("BlurMenuFX.swf", "BlurMenuFXDiv", "600", "300", "9.0.0", false, flashvars, params, attributes);

In this case, width = 600 and height = 300.

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