# If (\_root.b = Frame1) Command?

**URL:** <https://forum.kirupa.com/t/if--root-b-frame1-command/91449>\
**Category:** Uncategorized\
**Created:** [October 3, 2003, 9:35pm UTC](https://forum.kirupa.com/t/if--root-b-frame1-command/91449 "2003-10-03T21:35:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kev](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kev](https://forum.kirupa.com/u/kev)\
**Post date:** [October 3, 2003, 9:35pm UTC](https://forum.kirupa.com/t/if--root-b-frame1-command/91449/1 "2003-10-03T21:35:01Z")

</div>

Just a quick one, ok I have two mc’s (which contain a button)on the \_root. Each MC has 30 frames. When I press MC1 on the main stage the MC1 moves to frame 15 and stops, but I need to check what frame MC2 is at, if it is at frame 1 then I don’t want any commands to effect it, if it is at frame 15 I want it to play ();

I thought this would work -

[AS]  
if (\_root.mc2 = Frame1) {  
stop ();  
} else {  
play ();  
}  
[/AS]

But it does not, anyone know the command for this?

Thanks
