# Checking the right thing

**URL:** <https://forum.kirupa.com/t/checking-the-right-thing/78077>\
**Category:** Uncategorized\
**Created:** [February 1, 2005, 10:37pm UTC](https://forum.kirupa.com/t/checking-the-right-thing/78077 "2005-02-01T22:37:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dog\_E](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dog_e/32/360_2.png) [@Dog\_E](https://forum.kirupa.com/u/Dog_E)\
**Post date:** [February 1, 2005, 10:37pm UTC](https://forum.kirupa.com/t/checking-the-right-thing/78077/1 "2005-02-01T22:37:14Z")

</div>

Hello everyone. I am trying to do some effect on 3 buttons on the site.

I have profile, portfolio and contact buttons. And an MC on root(sayfa) where when each button is clicked, MC plays starting from different frames (like if a button is clicked ‘sayfa’ goes and plays 2).  
When portfolio button is clicked, if none of the other 2 buttons are clicked, ‘sayfa’ has to goto and play frame 101. The code is like this:

```auto
if (!profileclicked & !contactclicked) {_root.sayfa.gotoAndPlay(101);
	};

```

It works.

And if profile is clicked and contact isn’t clicked, when the portfolio is released, ‘sayfa’ should goto and play frame 203. I wrote the code like this:

```auto
if (profileclicked & !contactclicked) {_root.sayfa.gotoAndPlay(203);
	profileclicked = false;
	};

```

It doesn’t work. Can someone help me? I’m stuck with it.

Thanks
