Subscribe to bobocel’s New File RSS Feed
XML based accordion, with unlimited images.
1. Supports unlimited images, and both the swf and the images can have different sizes than the preview
2. Supports html formatted description text.
3. Fully customizable – XML driven.
This version includes flashvars variables, so that one doesn’t need to edit anything in Flash. Simply edit the html code. Inside index.html you’ll see this line of code:
var so = new SWFObject("Accordion.swf?keepSelected=false&selectedWindow=0&imageWidth=315&imageHeight=300&sWidth=590&sHeight=300", "sotester", "590", "300", "8", "#000000");
You can see I am sending these variables to the swf file:
keepSelected = false // if set to true, the selected image will always be displayed. This was a request and I thought I should add it. selectedWindow = 0 // you can write any number between 0 and the number of images you set. If you want to keep the selected image but start with no image, set the selected window to -1 imageWidth = the images width. All images need to be the same width. imageHeight = the images height. All images SHOULD be the same height. I would suggest you to keep the images height equal to the swf height. sWidth = the width of the swf file. Note you also need to set it were it's sent as a parameter, in the above line of code. The value is 590 and is sent twice. You need to do the same. sHeight= the height of the swf file. Note you also need to set it were it is sent as a parameter, in the above line of code. The value is 300 and is sent twice. You need to do the same. (I'm not refering the the imageHeight variable)
The XML file holds more settings you might want to check. Questions are welcomed.