# One button, two MC's controlled

**URL:** <https://forum.kirupa.com/t/one-button-two-mcs-controlled/266507>\
**Category:** flash\
**Created:** [July 21, 2008, 4:38pm UTC](https://forum.kirupa.com/t/one-button-two-mcs-controlled/266507 "2008-07-21T16:38:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fidgetp](https://avatars.discourse-cdn.com/v4/letter/f/da6949/32.png) [@fidgetp](https://forum.kirupa.com/u/fidgetp)\
**Post date:** [July 21, 2008, 4:38pm UTC](https://forum.kirupa.com/t/one-button-two-mcs-controlled/266507/1 "2008-07-21T16:38:41Z")

</div>

I have one MC with the following AS:  
[INDENT]stop();  
this.onEnterFrame = function() {  
if (rewind == true) {  
prevFrame();  
}  
}  
\_root.about\_btn.onRollOver = function() {  
rewind = false;  
play();  
}  
\_root.about\_btn.onRollOut = function() {  
rewind = true;  
}[/INDENT]

This works fine. However, I want the button “about\_btn” to also control a second MC, but flip the rewind properties, like so:  
[INDENT]stop();  
this.onEnterFrame = function() {  
if (rewind == true) {  
prevFrame();  
}  
}  
\_root.about\_btn.onRollOver = function() {  
rewind = true;  
}  
\_root.about\_btn.onRollOut = function() {  
rewind = false;  
play();  
}[/INDENT]

but no such luck with the second MC. Even if I apply the same AS code to the second MC, it still won’t work. Thoughts?
