# Offsetting two mc's with one button

**URL:** https://forum.kirupa.com/t/offsetting-two-mcs-with-one-button/126905
**Category:** Uncategorized
**Created:** [October 28, 2004, 9:00am UTC](https://forum.kirupa.com/t/offsetting-two-mcs-with-one-button/126905 "2004-10-28T09:00:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jerryj](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jerryj](https://forum.kirupa.com/u/jerryj)
#### Post date: [October 28, 2004, 9:00am UTC](https://forum.kirupa.com/t/offsetting-two-mcs-with-one-button/126905/1 "2004-10-28T09:00:04Z")

</div>

hi,

If I use the code as described below for offsetting a movieclip , I can’t seem to use it for two or more movieclips adressed by one and the same button. When I use for instance the following code, only one of the mc’s will show, the other won’t. Any ideas? Thanks,  
Jerryj

on(press){  
function cont() {  
cont1.\_visible=true;  
clearInterval(IntVal);  
//1000 = 1 seconde  
}  
IntVal = setInterval(cont,620 );  
}  
on(press){  
function txt1() {  
MC1txt.gotoAndPlay(2);  
clearInterval(IntVal);  
//1000 = 1 seconde  
}  
IntVal = setInterval(txt1,2000 );  
}
