# Buttons in an attached movie from library

**URL:** <https://forum.kirupa.com/t/buttons-in-an-attached-movie-from-library/251810>\
**Category:** flash\
**Created:** [February 12, 2008, 9:13pm UTC](https://forum.kirupa.com/t/buttons-in-an-attached-movie-from-library/251810 "2008-02-12T21:13:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![peforever](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@peforever](https://forum.kirupa.com/u/peforever)\
**Post date:** [February 12, 2008, 9:13pm UTC](https://forum.kirupa.com/t/buttons-in-an-attached-movie-from-library/251810/1 "2008-02-12T21:13:49Z")

</div>

I used the tutorial posted at [http://www.layersmagazine.com/flash-attaching-movieclips-actionscript.html](http://www.layersmagazine.com/flash-attaching-movieclips-actionscript.html) Now I have a button on my stage that attaches a movie from the library.

on (release) { this.holder.attachMovie(“contents”,”contentslinks”,1); }

It works fine but I also have buttons inside the attached movie clip that need to control a movie that is already on the stage.

contentslinks.contents\_link\_1.onRelease = function() { content\_mc.\_visible = false; book\_mc.directGotoPage(4);

If I just place the attached movie on the stage the buttons work but I when I proceed to use attachMovie, they do not work. How do I get the buttons in the attached movie to address the movie that is already on the stage?
