I just added a new MInimal Component: an Accordion. It’s pretty similar to what you see here: http://www.bit-101.com/blog/?p=2313, i.e. a VBox with Windows, but I made into it’s own class with a few nice touches.
A new Accordion starts with two sections. You can add more with accordion.addWindow("New Window Title");
. You can access any window with accordion.getWindowAt(index);
. See it in action at http://www.minimalcomps.com.
It’s in the new 0.99 SWC/Source that is now on Google Code, along with a bunch of bug fixes and updates to the existing code. The next main thing I want to focus on is a scroll bar, which will make a few other, much needed components possible, but this one was really easy to bang out.
Nice new component!
I like the addWindow and getWindowAt methods.
But from a (end)user point of view, (maybe this is to much of a detail) I prefer to have the complete name of a window (maybe even the complete title bar) to be clickable in stead of just the arrow.
Hello thanks for sharing your code. Its nice to find some as3 only components that aren’t dependent on a massive framework.
I want to animate the transitions between the accordion windows it proves quite difficult when you use removeChild(_panel) and make the Vbox update.