# Controlling a MC from another MC?

**URL:** <https://forum.kirupa.com/t/controlling-a-mc-from-another-mc/267802>\
**Category:** Uncategorized\
**Created:** [August 5, 2008, 9:36pm UTC](https://forum.kirupa.com/t/controlling-a-mc-from-another-mc/267802 "2008-08-05T21:36:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonhardwick](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jasonhardwick](https://forum.kirupa.com/u/jasonhardwick)\
**Post date:** [August 5, 2008, 9:36pm UTC](https://forum.kirupa.com/t/controlling-a-mc-from-another-mc/267802/1 "2008-08-05T21:36:34Z")

</div>

I’ve got two Movie Clips “MC1” & “MC2” on my main timeline with buttons that give them life so if i click on “MC1” then it plays the open and stops on the “up” frame the next frame in the movie is the “out” which plays the Movie Clip out. but when “MC1” is up and you click on “MC2” i want “MC1” to play the out frame.

I’m guessing at this but is this anywhere close?  
this is the code attached to the button inside of “MC2”

```auto
on (release) {

	if ( _root.MC1 = ("up")) 
{ 
	      _root.MC1.gotoAndPlay("out");
 
} 
	gotoAndPlay("in");
}

```
