Questions

Answer

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

How SWF and XMLs interact

 

The product's SWF file loads by default the settings.xml file which contains all the parameters of the component. You can rename this file but you have to specify the new name using the following code:

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

like in this example for the 3D Banner FX:

<div id="Div3DBannerFX"></div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
 var flashvars = {};
 flashvars.settingsXML = "your_name.xml";
 var params = {};
 params.base = "";
 params.scale = "noscale";
 params.salign = "tl";
 params.wmode = "transparent";
 params.allowFullScreen = "true";
 params.allowScriptAccess = "always";
 swfobject.embedSWF("3DBannerFX.swf", "Div3DBannerFX", "600", "374", "9.0.0", false, flashvars, params);
</script>

 

The assets (images, videos, text etc.) displayed by the product are specified in the images.xml (or menu.xml, videos.xml, big.xmlmedia.xml for other products). You can also rename this file but you have to specify in the settings.xml file through assets element what's the new name, like this example:

assets value="your_name_images.xml"

The Banner Rotator FX, Dock Menu FX and 3D Carousel Menu AS2 FX has imagesXML instead of assets element in the settings.xml file. The Video Player FX has media_url.

Comments

Anthony A

Posted 2 years ago

Ok thanks.
What’s the method of starting the gallery from inside flash ?
I am getting a lot of compiler errors.
Thanks

FlashXML Support

Hi,

Please follow the instruction installation in flash from the Photo Wall FX page.

Anthony A

Posted 2 years ago

I have purchaged photowallFX, install the component and woks fine with settings.xml. Using flash cs5/as3.

I renamed the filename “settings.xml” to “xsettings.xml” (nothing else) and change the component property settingsXML to “xsettings.xml” and getting the compiler error:
Scene 1, Layer ‘Layer 1’, Frame 1 1067: Implicit coercion of a value of type int to an unrelated type String.

How can I change settings.xml from FLASH AS3 to a different name.

Could you help please ?
aa

FlashXML Support

Hi,

Regarding to your previous comments.

Regarding to your code do this way:

1) Drag to stage the Photo Wall FX.

2)Give it a instance name.

3) To load your xsetting.xml use this code:

photoWallFX.settingsXML = "xsettings.xml"; // photoWallFX is the instance name given as an e.g.

Bob Lancaster

Posted 2 years ago

I have a banner rotator and I want to fix the banner at 590×250. I want to show a series of 590×250 PNG files. I do not what them stretched or resized in any way.

My problem is the Banner Div is not filling it’s container Div (see below). There is about a 10 px gap on the right and bottom. How do I fix this?

Thanks
Bob

<div style=“position: relative; width: 979px; background: url(’/images/newdesign/home_redball.png’); float: left; height: 279px”>
<div style=“position: absolute; width: 590px; height: 250px; left: 375px; border-style: solid”>
<div id=“BannerDiv”>
</div>
</div>
</div>

Settings:

<generalOptions imagesXML=“images.xml” styleCSS=“style.css” bannerWidth=“590” bannerHeight=“250” randomImages=“false” randomTransitions=“false” imageFitting=“bestFit” autoStart=“true” firstWithTransition=“false” autoTiming=“true” pauseOnMouseOver=“true” loadNextImageInBack=“true” backgroundColor=”“ />

FlashXML Support

Hi,

Send us the link to your website and we will check it out.

Anthony A

Posted 2 years ago

See my previous comment.. I have found a method to solve it.
Now I need some help for : I am trying to change flashvars.settingsXML filename
using new Loader() method to load PhotoWallFX.swf but
always is uses the setings.xml.

var flashvars = {};
flashvars.settingsXML = “settings5.xml”;
fl_Loader_4 = new Loader();
fl_Loader_4.load(new URLRequest(“PhotoWallFX.swf”));
addChild(fl_Loader_4);

What I am doing wrong ?
Please help.
AA

Anthony A

Posted 2 years ago

I have downloaded the photowallfx free gallery. I am using cs5 Flash and as3.
It works fine in my flash as3 project but I can’t position the gallery object at a specific position x,y pixel axis in the flash window..
How can I set x,y axis to position the gallery ? Is that possible ?
Best regards

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