Short explanation on how FX components read XML files
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";
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.



Leave a Reply