Search  

ACCORDION V2 (XML)

HomeBrowse CategoriesFlashApplications and UtilitiesImage ViewersAccordion v2 (xml)

Subscribe to bobocel’s New File RSS Feed


How to?

(video)

Resize the file!

Very important to read!

Features:

1. Supports unlimited images.
2. Supports html formatted description text.
3. Fully customizable – XML driven.
4. Images loaded from external folder.

Really important! Please read very carefully.

You can add unlimited number of images to the accordion, and customize it to any swf and image size.

The file has been updated and some BIG issues have been addressed. I recommend this FREE update to all that bought the file. I added the features MOST of you requested, and I cleaned the code a bit.

1. The file is contained in a single movieclip, and this way I was able to mask everything to fit nicely on the stage. This means the file can now easily be used in other Flash files as well.

2. The _root has been removed from the code, and instead I’ve change the paths accordingly. This is another improvement so that the file can be used in other Flash files too.

3. I’ve added much more functionality in the XML as well as inside the file, and you can read about it below.

The current version now includes flashvars variables, so that one doesn’t need to edit anything in Flash. Simply edit the html code.

I’ve included an example that doesn’t use flashvars as well, just in case you plan to use the file in another way. The only changes are the way those variables were passed.

There is a new help file included, which I am hoping everybody will read.

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’s 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)

    slideshow = true - this will enable auto slideshow between the slides of the Accordion



The XML file holds more settings you might want to check.

The text can be html formatted.

The only variables that might not mean something from the first time you look at them are:

color="0x000000" alphaColor="0"


This is a layer that goes over the image when you move the mouse on top of the images. The color and the alpha of this layer can be set here.

Questions are welcomed.

You might also be interested in:

Video Players



Galleries



Templates



MP3 players



News readers



XML menus



Slideshows



Creative navigation



Utilities

Posted about 1 year ago

I already have the next one up. It’s called V4. :p

Posted 4 months ago

Is there a way to make the file work onRelease as opposed to onRollOver?

I tried changing mc.mcBut.but.onRollOver = function() to mc.mcBut.but.onRelease = function()

but then the menu does build.

Posted 4 months ago

*doesn’t build.

Posted 4 months ago

Yeah, some changes need to be done – but there are some. An advice I can give you is to get the Accordion V4 file, which has this implemented, and try to copy/paste code from there. It’s based on the same file.

Posted 4 months ago

How do I get version 4 ?

Posted 4 months ago

Oh I see. I have to buy it. Why doesn’t your list of files (above) show version 4? If it had I would have bought that one.

Posted 4 months ago

Well I don’t want to spend $12 more dollars just to get the clicking function to work. Maybe I’ll figure it out on my own.

Cool file though. It works really good. Maybe you should create v5 with xml control over whether or not it works on rollover or on release.

Posted 4 months ago

@tmc: it doesn’t show my latest files as it is time consuming to go through all my 75 files and change the description whenever I upload a new file. It would be good to have this automated, but it isn’t – so I do it by hand to the most popular files I have.

@xonyd: please check V4.

Posted 4 months ago

Is it possible to ‘reload’ the accordeon based on a different xml file via AS?

i.e. on(release) { // set a different xmlpath xmlPath = “accordeon2.xml”; // repopulate the accordeon initAccordionItems(); }

Posted 2 months ago

Nope – but you can reload the div that holds the swf file, and send the xml as a parameter. Or get in touch for a quote for making it work as you need it. :)

Posted 2 months ago

Why is target=”_self” is not working on the accordion scripts? I can’t get a response from anything but target=”_blank” in the xml. Is anyone else experiencing this? This opening in a new window is a drag. Any help is most appreciated.

Posted 2 months ago

Please send me the XML so I can see what you did wrong. Thanks.

Posted 2 months ago

Oh, I checked – you added the attribute, but did not change any code. :)

I updated the file to take the target from the XML too, please download again from FlashDen. Thanks.

Posted 2 months ago

Hello bobocel,

Thanks for a very nice piece of work. I’ve tweaked things to almost how I want them, but am stuck on the final thing. When the menu loads for the first time (on each page) there is a dark grey overlay on each image. I have removed (by trial and error) the overlay once an image is rolled over, but that first overlay escapes me. ...help?!

If you need to see the file[s] to see what I mean what is the best way to send them to you.

Thanks

Posted 2 months ago

Ignore my request. I’ve sorted it out. Nonetheless thanks for a great piece of work.

Posted 2 months ago

hey, i love this and it rocks. one question, how can i make sure that the links dont open in a new window? i somehow figured it out a while back but am working against a deadline – could you tell me which file to open and tweek so that these links open in the same window. thanks a ton

Posted about 1 month ago

Please download the latest files again. It should have it implemented in the XML to set the target.

Posted about 1 month ago

Great looking file, But i did not know that you can only view the file when it has been uploaded to a server…..

Posted about 1 month ago

Well, that’s not the case. You can view it locally as well. :)

Posted about 1 month ago

This is a wonderful package. One question: Is there an [easy] way to have the typing text have a dark underlay so that it can be read easier when the image has a lot of noise/colors? Some of my images have a lot of contrast in them, so reading the text (even when I change their colors) is difficult. Thank you!

Posted about 1 month ago

Yes, you can easily add a filter to the dynamic text. You can do that in the fla file.

Posted about 1 month ago

Hi, I have both of your files this one and the new v4, I am having a hard time getting the autoslide show turned off. In the new version you have this code to control it preview.swf?slideshow=f but i dont see this (in this version) in my html to control it. I pasted that new code in my html and it did nothing. Hoping that would of worked and i wouldnt of had to bother you. Please help thanks

Posted 6 days ago