# Accordion animation question

**URL:** <https://forum.kirupa.com/t/accordion-animation-question/298654>\
**Category:** flash\
**Created:** [October 22, 2009, 2:05pm UTC](https://forum.kirupa.com/t/accordion-animation-question/298654 "2009-10-22T14:05:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![befekteto](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@befekteto](https://forum.kirupa.com/u/befekteto)\
**Post date:** [October 22, 2009, 2:05pm UTC](https://forum.kirupa.com/t/accordion-animation-question/298654/1 "2009-10-22T14:05:14Z")

</div>

Hello everybody  
I’m new in the forum and new with Flash CS4…  
I did one animation accordion,(attached the swf file) and I have a problem about ‘’ stage playing’’ …I think 🙂  
When my accordion opens the first column, I have stop(); and closing the first column in the timeline is after the stop. So clicking on the second column is jumping directly to open the second…  
But I need to close the first…  
I hope somebody can understand 🙂 and help.  
there is some code to play the stage before jumping to other frame?

THANKS!!!

now I have only this in the actions and till here it’s Ok :

stop();

import flash.events.MouseEvent;

One\_btn.addEventListener(MouseEvent.CLICK, oneClick);  
Two\_btn.addEventListener(MouseEvent.CLICK, twoClick);  
Three\_btn.addEventListener(MouseEvent.CLICK, threeClick);

function oneClick(event:MouseEvent):void{  
gotoAndPlay (“getOne”);  
}

function twoClick(event:MouseEvent):void{  
gotoAndPlay (“getTwo”);  
}

function threeClick(event:MouseEvent):void{  
gotoAndPlay (“getThree”);  
}
