# Hittest and Button Pressing at the Same Time

**URL:** https://forum.kirupa.com/t/hittest-and-button-pressing-at-the-same-time/248418
**Category:** flash
**Created:** [January 8, 2008, 2:07am UTC](https://forum.kirupa.com/t/hittest-and-button-pressing-at-the-same-time/248418 "2008-01-08T02:07:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Yivyn](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yivyn/32/3086_2.png) [@Yivyn](https://forum.kirupa.com/u/Yivyn)
#### Post date: [January 8, 2008, 2:07am UTC](https://forum.kirupa.com/t/hittest-and-button-pressing-at-the-same-time/248418/1 "2008-01-08T02:07:08Z")

</div>

I’ve tried doing this and I’m having trouble \>.\<

I’m basically trying to do a guitar hero like game. What I’m looking to do is  
when ‘mc\_note1 -\> mc\_note5’ (names of the 5 notes) **hit** mc\_bar1 -\> mc\_bar5 (the names of what the notes will hit) \*\*AND \*\*buttons Z X C V B (for mc\_note1,2,3,4,5) are pressed, then it adds 10 to a textbox with the instance name of score.

How would I go about doing this?
