# Flash 8 :: Unable to attachMovie to EmptyMovieClip

**URL:** <https://forum.kirupa.com/t/flash-8-unable-to-attachmovie-to-emptymovieclip/174486>\
**Category:** flash\
**Created:** [January 6, 2006, 3:08am UTC](https://forum.kirupa.com/t/flash-8-unable-to-attachmovie-to-emptymovieclip/174486 "2006-01-06T03:08:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![restlessdesign](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@restlessdesign](https://forum.kirupa.com/u/restlessdesign)\
**Post date:** [January 6, 2006, 3:08am UTC](https://forum.kirupa.com/t/flash-8-unable-to-attachmovie-to-emptymovieclip/174486/1 "2006-01-06T03:08:38Z")

</div>

Hi guys!  
I’m trying to create a scroller menu. The container movieclip will hold several copies of a clip in the library. So I’m trying to create the clip dynamically since it’s width will be varying depending on the number of elements it contains.  
But when I try to use the attachMovie method on my newly created empty movieclip, nothing shows up! The test\_mc will attach if I just say \_root.attachMovie, so I don’t know if it’s a path issue or if emptyMovieClips can’t have other clips attached or what. What am I doing wrong!? =/

var emptyClip:MovieClip = this.createEmptyMovieClip(“empty\_mc”, 9);  
emptyClip.\_x = Stage.width / 2;  
emptyClip.\_y = Stage.height / 2;  
emptyClip.\_width = 300;  
emptyClip.\_height = 300;  
emptyClip.attachMovie(“test\_mc”, “test\_mc”, 20);
