# Tab button + different things

**URL:** https://forum.kirupa.com/t/tab-button-different-things/188457
**Category:** Uncategorized
**Created:** [May 8, 2006, 4:50am UTC](https://forum.kirupa.com/t/tab-button-different-things/188457 "2006-05-08T04:50:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chevron8653](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@chevron8653](https://forum.kirupa.com/u/chevron8653)
#### Post date: [May 8, 2006, 4:50am UTC](https://forum.kirupa.com/t/tab-button-different-things/188457/1 "2006-05-08T04:50:54Z")

</div>

Hey guys.

well i have it set up that when the user presses the tab button 4 mc’s i have play a fade in animation and then goto a frame in there timeline with a stop action.  
But that works but when the user presses tab while they are on the frame with the stop action is just plays the same animation again and i dont want it to do that i want it to goto another frame in the mc’s timeline.

var keyListener:Object = new Object();  
keyListener.onKeyDown = function() {  
if(Key.getCode()== Key.TAB) {  
frame\_mc.gotoAndPlay("\_dissapearing")  
login\_mc.gotoAndPlay("\_appearing")  
border1\_mc.gotoAndPlay("\_change")  
borderpart2\_mc.gotoAndPlay("\_appearing")  
backbutt\_mc.gotoAndPlay("\_appear")  
}  
};  
Key.addListener(keyListener);

var keyListener:Object = new Object();  
keyListener.onKeyDown = function() {  
if (Key.getCode()== Key.TAB) {  
frame\_mc.gotoAndPlay("\_reapear")  
login\_mc.gotoAndPlay("\_dissapear")  
border1\_mc.gotoAndPlay("\_foldingback")  
borderpart2\_mc.gotoAndPlay("\_changingagain")  
backbutt\_mc.gotoAndPlay("\_invisible")  
}  
};  
Key.addListener(keyListener);

thats the code i have above so what im asking is where or how would i tell it that if the user presses tab again while there on the frame with a stop action that it goto’s and plays another frame of i.

dou get it?  
im on msn now if u didnt understand what im after so hope u can help
