[flexcoders] Accordion panel to stay open, when another panel is selected.

2005-08-27 Thread P Trisnadi
OK, this is not how an accordion should behave, but: 

Is it possible to have one of the accordion panel to
stay open, when another panel is selected? (And closes
only when the panel header is clicked?) Or, is it even
possible to have more than one panel open in 1
accordion widget?

Thanks in advanced,
- ptrisnadi


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Accordion panel to stay open, when another panel is selected.

2005-08-27 Thread Scott Barnes
Its quite possible but in truth, no easy solution. 

I'm working from memory hear so forgive me if i've overlooked anything.

When the accordion panel moves containers up and down (ie hide/show)
it basically carries out a tween effect. The tween effect moves the
items within a mask state from point a to point b to give it that
visual cue somethings shifting.

So as you can imagine, in order to have both panels open, the overall
container has to stay the same size, meaning if you have 3 panels, it
will divide all 3 into 1/3 of the actual accordions height.

You can do this by manipulating the visible state for each child, but
in doing so you will also have to hijack the tweening for the movement
(ie collapse/expand will need to adjust). On top of that, you may have
to insert your own masking solution to circumvent each child
containers masking.

When I made my HAccordion hack to the Accordion Panel, i found the
tweening to be the annoying part, as it caught me off guard so to
speak (didn't realise it had some firm hooks into how the logic shifts
from a--b).

To put it bluntly, its possible but unless you're an advanced
component centric flex/flash developer you will find it an up hill
battle.

Its no easy task... and it may be easier to simply write your own panel system?





On 8/27/05, P Trisnadi [EMAIL PROTECTED] wrote:
 OK, this is not how an accordion should behave, but:
 
 Is it possible to have one of the accordion panel to
 stay open, when another panel is selected? (And closes
 only when the panel header is clicked?) Or, is it even
 possible to have more than one panel open in 1
 accordion widget?
 
 Thanks in advanced,
 - ptrisnadi
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/