# Another button as movie clip problem

**URL:** https://forum.kirupa.com/t/another-button-as-movie-clip-problem/203490
**Category:** flash
**Created:** [October 11, 2006, 2:26pm UTC](https://forum.kirupa.com/t/another-button-as-movie-clip-problem/203490 "2006-10-11T14:26:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Lill](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@Lill](https://forum.kirupa.com/u/Lill)
#### Post date: [October 11, 2006, 2:26pm UTC](https://forum.kirupa.com/t/another-button-as-movie-clip-problem/203490/1 "2006-10-11T14:26:53Z")

</div>

Hi, Im pretty new with actionscript. But here is the status:  
The actionscript is on its own layer.  
I got mc-buttons with onRollOver and onRollOut effect, but also has a graphic that shows when onPress.

The problem is that if i press a button twize or if i dont cycle through every button (touched with the mouse without pressing) before i press one of them, the onRollOver MC plays itself in the diffrent buttons that werent cycled through.

How do fix this?  
Please help:\*(

(added a jpg pic btw)

Here is the actionscript:

```php
start_btn2.onRollOver = function() {
if (down2 != true){
this.gotoAndPlay(2);
}
}
start_btn2.onPress = function() {
this.gotoAndPlay(16);
down2 = true
down3 = false
down4 = false
down5 = false
down6 = false
down7 = false
prod_btn2.gotoAndPlay (1);
kamp_btn2.gotoAndPlay (1);
om_btn2.gotoAndPlay (1);
kont_btn2.gotoAndPlay (1);
ref_btn2.gotoAndPlay (1);
}
start_btn2.onRollOut = function() {
if (down2 != true){
this.gotoAndPlay(10); 
} 
}
prod_btn2.onRollOver = function() {
if (down3 != true){
this.gotoAndPlay(2);
}
}
prod_btn2.onPress = function() {
this.gotoAndPlay(16);
down3 = true
down2 = false 
down4 = false
down5 = false
down6 = false
down7 = false
start_btn2.gotoAndPlay (1);
kamp_btn2.gotoAndPlay (1);
om_btn2.gotoAndPlay (1);
kont_btn2.gotoAndPlay (1);
ref_btn2.gotoAndPlay (1);
}
prod_btn2.onRollOut = function() {
if (down3 != true){
this.gotoAndPlay(10); 
}
}
kamp_btn2.onRollOver = function() {
if (down4 != true){
this.gotoAndPlay(2);
}
}
kamp_btn2.onPress = function() {
this.gotoAndPlay(16);
down2 = false
down3 = false
down4 = true
down5 = false
down6 = false
down7 = false
start_btn2.gotoAndPlay (1);
prod_btn2.gotoAndPlay (1);
om_btn2.gotoAndPlay (1);
kont_btn2.gotoAndPlay (1);
ref_btn2.gotoAndPlay (1);
}
kamp_btn2.onRollOut = function() {
if (down4 != true){
this.gotoAndPlay(10); 
} 
}

```
