# Register button touch

**URL:** https://forum.kirupa.com/t/register-button-touch/332156
**Category:** flash
**Created:** [February 17, 2014, 7:14pm UTC](https://forum.kirupa.com/t/register-button-touch/332156 "2014-02-17T19:14:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![o111](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/o111/32/2123_2.png) [@o111](https://forum.kirupa.com/u/o111)
#### Post date: [February 17, 2014, 7:14pm UTC](https://forum.kirupa.com/t/register-button-touch/332156/1 "2014-02-17T19:14:28Z")

</div>

Hey guys,

I’m working on a thing and I want to make stuff happen when a button is clicked (or touched, I’m using TouchEvents). My guess is it’s not that difficult, but I’m having a hard time figuring it out.

I have a Movieclip “a\_btn” and so far this is what I’ve doodled down:

```php
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
a_btn.addEventListener(TouchEvent.TOUCH_BEGIN, aButtonDown);
function aButtonDown(event:TouchEvent):void{ if a_btn is pressed
{
do this
}}

```

So it’s in that if-part I want to say "if “a\_btn is pressed, do this”, right. I might have it wrong so please correct me!
