# Little lost in attachMovie.....HELP needed

**URL:** <https://forum.kirupa.com/t/little-lost-in-attachmovie-help-needed/2814>\
**Category:** flash\
**Created:** [April 5, 2002, 8:31pm UTC](https://forum.kirupa.com/t/little-lost-in-attachmovie-help-needed/2814 "2002-04-05T20:31:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 5, 2002, 8:31pm UTC](https://forum.kirupa.com/t/little-lost-in-attachmovie-help-needed/2814/1 "2002-04-05T20:31:35Z")

</div>

I have a button inside an MC. When you press the button serveral MC’s with buttons inside will be attached. This all works fine and i can address those MC’s. \r\rThe attached MC’s all have buttons inside. When those buttons are pressed…a new set of MC’s will appear. Now how do i address those MC’s?? \r\rSome code to explain what i am doing: \rI am trying to make a dynamic navigation structure; started by pressing the button and the following code will be executed: \ron (press) { \r// Set y distance between the buttons (dy) \rdy = 30; \rfor (i = 1; i \<= 5; i++) { \rattachMovie(“menu”, “menu”+i, i); \r\_root[“menu” + i].menu = \_root[“menuName” + i]; \r\_root[“menu”+i].\_x = \_root[“menu”+i].\_x + 150; \r\_root[“menu”+i].\_y = \_root[“menu”+i].\_y + dy; \rdy = dy + 15; \r} \r} \rThis all works fine. \rNow i would like to create a new set of MC’s from the button inside just attached MC’s. I thought it would work like this:\ron (press) { \r// Set y distance between the buttons (dy) \rdy = 30; \rfor (i = 1; i \<= 5; i++) { \rattachMovie(“menu2”, “submenu”+i, i); \r\_root[“submenu” + i].menu = \_root[“submenuName” + i]; \r\_root[“submenu”+i].\_x = \_root[“submenu”+i].\_x + 150; \r\_root[“submenu”+i].\_y = \_root[“submenu”+i].\_y + dy; \rdy = dy + 15; \r} \r} \r\r\rIt shouldn’t be so hard, but it drives me crazy. \r\rThanks for any responses.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 5, 2002, 9:01pm UTC](https://forum.kirupa.com/t/little-lost-in-attachmovie-help-needed/2814/2 "2002-04-05T21:01:32Z")

</div>

No reply necessary. I found the error by trial & error 🙂
