Questions

Answer

How to load a product with a different settings.xml file

The SWF file loads at start the settings.xml file which contains all the parameters of the component. You can customize these parameters on the Live Demo of the component (the demo with controls) and then click on the “Generate settings.xml” button. You can overwrite this generated content over the contents of the existing (default) settings.xml file.
The filename of the settings.xml file can be modified through FlashVars:

var flashvars = {};
flashvars.settingsXML = "your_filename.xml";

like in this example:

<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.settingsXML= "your_filename.xml";
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("ComponentNameFX.swf", "ComponentNameDiv", "600", "300", "9.0.0", false, flashvars, params, attributes);

In the images.xml file (the name of the file can be modified inside the settings.xml file) you can add as many images as you want to the component. There is no parameter to specify a total number of images which a component will use, and this number will be calculated from the number of rows added in the images.xml file.
Each row represents a new image, and for each image you can specify things like:
- image - the path of the image
- url - the address to go to when clicking the image
- target - “_self” opens the url in the same browser page, ” _blank” opens the url in a new browser page
The attributes list may differ from one component to another. You will usually have all the particularities each component’s image can support.

Comments

Ray Ursell

Posted 2 months ago

Hi
I am using page flip fx The height of the flash component is 400px and the component height is 400px in the settings file and it works fine without the control bar
If I then increase the flash component depth on my page to 500px and switch on the control bar I get a 50px blank header, the 400px flip book and a 50px footer below which correctly displays the control panel
Posy is set to 0
How do I get rid of the 50px blank header?
Thanks
Ray

FlashXML Support

Hi,

Please send us an e-mail with the link of your website.

Paul

Posted 2 months ago

Hi,

I am trying to load a 3FbannerFX in webid auction’s default template. http://mydomain.com/webid/
I uploaded the 3_DBanner.ZIP folder to the http://mydomain.com/webid/themes/default/ folder and unzipped it there. I inserted the javascript definition in the home.tpl template file. I have body tags and inserted the <div id=“Div3DBannerFX”></div> between opening and closing body tags. Nothing. Chrome’s Inspect Element shows that it has 1036px x 0px dimensions. Any help would be appreciated

FlashXML Support

Hi,

Try to add the following code in your home.tpl page:

<script type="text/javascript" src="themes/default/swfobject.js"></script>
 <script type="text/javascript">
 var flashvars = {};
 flashvars.folderPath = "themes/default/";
 var params = {};
 params.scale = "default";
 params.salign = "tl";
 params.wmode = "transparent";
 var attributes = {};
 swfobject.embedSWF("themes/default/3DBannerFX.swf", "Div3DBannerFX", "250", "300", "9.0.0", false, flashvars, params, attributes);
 </script>

And <div id=“Div3DBannerFX”></div> in the BODY section of your page.

Pramod

Posted 3 months ago

Hi,

I am loading 360ProductViewerFX.swf file from another fla project .. I am able to run that when all the files
are in the same root directory .. But I have a requirement of having different images.xml (and so a different settings.xml) for various products. I saw that there is a flashvars setting to change the xml file when loaded from
a html file .. How can I do the same from my as3 code ? fyi .. I am using the Loader function to load the swf file.

Thanks
Pramod

Marco

Posted 3 months ago

Hi!

many thanks for the tutorial. I am trying to insert a SWF in a PDF, using Adobe X Pro.

But it results in unable to load XML data.

Any help????

Many thanks!

FlashXML Support

Hi,

We have sent you a private e-mail. Please check your inbox.

Joe

Posted 3 months ago

Hi

I am using the free version of the 3D BannerFX and i have managed to import it using Action script 3.0 but when i play it (CTR + Enter), it says that it can’t find some 3Dface.xml?u1xxxxxx file and it shows only the background image and not the slides. What could be the problem?

FlashXML Support

Hi,

This is probably due to the fact your are adding the component without waiting for it first load – please see the Complete function in the FLA I have sent you.

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