PDA

View Full Version : Vertical Accordion?


CDHBookingEdge
12-15-2006, 07:11 AM
Is there a way to make the Accordion display vertically? So that the "buttons" are like this "| | |"? Also while I'm asking on Accordion, is there a way to have more than one open at a time? And if no to these questions is there another choice of a component to use?

Thanks in advance,
Christopher

dr_zeus
12-15-2006, 06:55 PM
I once made a vertical accordion by rotating the component by 90 degrees. There are a few things to consider if you use it this way. 1) You'll need to embed your font so that it displays rotated. 2) You'll have to account for the positioning offset because it doesn't rotate around the center point. 3) The contents will be rotated too!

Don't do it that way. It's a pain, and I only did it because I was new to Flex at the time. ;)

The source code for the accordion should be in the SDK directory. It might be a little challenging, but you should be able to modify the code. If I find time in the future (read: I may never do it), I may implement a VAccordion myself and release it open source. I can imagine many people would want to use it.

CDHBookingEdge
12-15-2006, 11:09 PM
"If I find time in the future (read: I may never do it)" LOL one of the beauties of being a programmer, the ability to say "Yes, I'll get on that as soon as I'm done with this program." And LOL a program is never really finished. Ok, you can use that with your "Significant Other" about 3 times before they come at you with something, but hey it works for a while!

To explain the impetus behind my question, I was looking at the Laszlo Demos and they had an Amazon Store (http://www.laszlosystems.com/lps/sample-apps/amazon/amazon2.lzx?lzt=html). So I was thinking "Heck you can do that in Flex!" And LOL that was my first failing (on this project).

Thanks Josh, and oh while I have your "ear", thanks for the Google Search Demo (http://www.zeuslabs.us/archives/84/search-google-in-flex-2/) on your site. It's really cool. And have you heard anything as far as when FD3 is planned out?

Christopher

dr_zeus
12-18-2006, 05:48 PM
Glad I can help. I just read on the FlashDevelop forums that an alpha is planned for FD3 once a few more important features are ready. I'm not an official member of the project, so I don't have any special knowledge in that department. I just make a useful plugin.

*Wonders if he'll find time in the future to update the help panel for FD3*

CDHBookingEdge
12-19-2006, 02:18 PM
Yes I know you're not an official member. I just wondered because I haven't been to their forum in a while. ;-)

Thanks,
Christopher

j2eeuser
08-02-2007, 01:16 AM
Hi,

where you able figure out if there is a way to have more than one child open at a time in accordion?

thanks.