# ASIII Buttons help

**URL:** https://forum.kirupa.com/t/asiii-buttons-help/332141
**Category:** flash
**Created:** [February 13, 2014, 2:21pm UTC](https://forum.kirupa.com/t/asiii-buttons-help/332141 "2014-02-13T14:21:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chevron8669](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@chevron8669](https://forum.kirupa.com/u/chevron8669)
#### Post date: [February 13, 2014, 2:21pm UTC](https://forum.kirupa.com/t/asiii-buttons-help/332141/1 "2014-02-13T14:21:32Z")

</div>

Hi guy’s I was wondering if I could get some help with AS-III, I am learning the changes from AS-II to III and I am having trouble with how they have changed the button targeting. Targeting a button on the main timeline that is always on the stage is easy but I can not figure out how to target one that is in a movie clip and dose not show up until the movie clip is on a certant frame I always get a null error because it thinks the object dose not exsist yet.

I use the following code normally so how would i make this work for a nested button that does not show on stage untill the movie clip its in goes to that frame.

```auto

var Button_Touch = MouseEvent.CLICK;
ONEBTN.addEventListener(Button_Touch, ONEDOWN);
function ONEDOWN(e:Event = null):void
{
    trace("ONE PRESSED");
}

```

Any help would be appreiciated I have googled with no luck. Thanks guys.
