# attachMovie and buttons

**URL:** https://forum.kirupa.com/t/attachmovie-and-buttons/101232
**Category:** Uncategorized
**Created:** [February 7, 2004, 2:43pm UTC](https://forum.kirupa.com/t/attachmovie-and-buttons/101232 "2004-02-07T14:43:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Danii](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@Danii](https://forum.kirupa.com/u/Danii)
#### Post date: [February 7, 2004, 2:43pm UTC](https://forum.kirupa.com/t/attachmovie-and-buttons/101232/1 "2004-02-07T14:43:19Z")

</div>

Hello!  
I’ve used attachMovie to get an MC onto the stage. now my problem is that there are buttons on that mc but i don’t know how to click on them using AS

here’s my code

[AS]  
\_root.createEmptyMovieClip(“tmp”,1);  
tmp.attachMovie(“myMc”,“myMc2”,1);

```auto

the movieclip is attached but then when i try to get access of the buttons like this,

```

tmp.go.onRelease = function() {  
doStuff;  
}

```auto

where "go" is the instance name of the button, it wont work.

I've also tried typing myMc2.onRelease and that wont work either...
So how do I solve this one???
```
