# Need help with AS2 accordion feature

**URL:** <https://forum.kirupa.com/t/need-help-with-as2-accordion-feature/328025>\
**Category:** flash\
**Created:** [April 13, 2012, 4:34pm UTC](https://forum.kirupa.com/t/need-help-with-as2-accordion-feature/328025 "2012-04-13T16:34:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avaughn](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@avaughn](https://forum.kirupa.com/u/avaughn)\
**Post date:** [April 13, 2012, 4:34pm UTC](https://forum.kirupa.com/t/need-help-with-as2-accordion-feature/328025/1 "2012-04-13T16:34:25Z")

</div>

I have developed this accordion display. If you run it you will see it works nicely however I want to limit it to only having one panel open at a time. Ideally if you click on “A” (it opens) then you click on any one of the other buttons B,C,D,or E it would close “A” and open which button panel you clicked.

(I had to remove buttons for C,D,and E to get the FLA file size down to 75k, but you can get the idea with the two)

The idea is not to allow more than one open at a time.

You can see my attempt of Frame 1 main timeline (it’s commented out in this copy)
