Hi,

To completely hide it, you have to remove it from Accordion. And add it
Accordion when you want to show it....But in that case you have to save
the current state of it(date, visual state etc)..and reinitialize it in
same state when you add it.

-abdul

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Simard, Ghislain
Sent: Monday, October 03, 2005 11:15 PM
To: '[email protected]'
Subject: RE: [flexcoders] hidding a stack in the accordion

Sorry, I think my question wasn't clearly defined.  Let me reformulate
my
question.
If I have three stacks composing my accordion.

<mx:Accordion id="myAccordion">
        <mx:Form id="stack1"></mx:Form>
        <mx:Form id="stack2"></mx:Form>
        <mx:Form id="stack3"></mx:Form>
</mx:Accordion>

I need a function which has the role of hidding or not "stack2".  By
hidding
I meant not being able to see "stack2" anymore. Simulating the
following:
<mx:Accordion>
        <mx:Form id="stack1"></mx:Form>
        <mx:Form id="stack3"></mx:Form>
</mx:Accordion>

Now here is the tricky part:
I would like to get back "stack2" if my condition is else.  I want to
see
stack2 with all his containers & controls.

function mangeAccordionStacks():Void{
        if (x == 1){
                //myAccordion.stack2 is out of the accordion
        }else{
                //myAccordion.stack2 is in the accordion
        }
}


Thanks

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Behalf Of Manish Jethani
Sent: Sunday, October 02, 2005 3:24 PM
To: [email protected]
Subject: Re: [flexcoders] hidding a stack in the accordion


On 10/1/05, Ghislain Simard <[EMAIL PROTECTED]> wrote:
> How to programtically hide a stack (or a tab) in an accordion?

One accordion pane will be visible at any given time.  To switch to
another pane simply set the 'selectedIndex' property accordingly.



--
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



 





--
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



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/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/
 


Reply via email to