# How to tell AS3... If buttonOne is clicked && buttonTwo is clicked \> go to and play

**URL:** <https://forum.kirupa.com/t/how-to-tell-as3-if-buttonone-is-clicked-buttontwo-is-clicked-go-to-and-play/325818>\
**Category:** flash\
**Created:** [November 6, 2011, 6:12pm UTC](https://forum.kirupa.com/t/how-to-tell-as3-if-buttonone-is-clicked-buttontwo-is-clicked-go-to-and-play/325818 "2011-11-06T18:12:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bananabuns](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@bananabuns](https://forum.kirupa.com/u/bananabuns)\
**Post date:** [November 6, 2011, 6:12pm UTC](https://forum.kirupa.com/t/how-to-tell-as3-if-buttonone-is-clicked-buttontwo-is-clicked-go-to-and-play/325818/1 "2011-11-06T18:12:54Z")

</div>

Any feedback greatly appreciated!

What does the code look like if I want the user to click two specific buttons then go to a new frame. I’ve been trying different methods, but I am honestly not brilliant with conditional statements.

This is what I’ve got so far…

about\_btn.addEventListener(MouseEvent.CLICK, clickAbout);  
home\_btn.addEventListener(MouseEvent.CLICK, clickMain);

if (function clickMain(event) && function clickAbout(event))  
{  
trace (“holy cow!”);  
}

Thank you thank you thank you!
