# AS2 - addressing btns in an attached movie clip

**URL:** <https://forum.kirupa.com/t/as2-addressing-btns-in-an-attached-movie-clip/291511>\
**Category:** flash\
**Created:** [June 30, 2009, 7:27pm UTC](https://forum.kirupa.com/t/as2-addressing-btns-in-an-attached-movie-clip/291511 "2009-06-30T19:27:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skarab](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Skarab](https://forum.kirupa.com/u/Skarab)\
**Post date:** [June 30, 2009, 7:27pm UTC](https://forum.kirupa.com/t/as2-addressing-btns-in-an-attached-movie-clip/291511/1 "2009-06-30T19:27:55Z")

</div>

I have a series of mc’s I’m attaching from the library, with buttons in the main movie. Inside each of the attached mc’s is a close button that needs to close the attached mc and launch a function in the main movie, but I’m having trouble addressing the button inside the attached mc from the main timeline.

I’ve tried this:

```auto
calloutHolder_mc.attachMovie("mar01callout", "callout_mc", 0);

calloutHolder_mc.callout_mc.close_btn.onRelease = function(){
    this._yscale = 0;
    new Tween(greyGrids_mc, "_alpha", Strong.easeInOut, 100, 0, 1, true);
    new Tween(dayColorBar_mc, "_yscale", Strong.easeInOut, 100, 0, 1, true);
    };

```

but I’m unable to write any version of this on the main timeline that allows me to communicate with that close button.

It’s also a problem because in some of the attached mc’s there are additional buttons that have other uses and I’ll need to communicate with them as well.
