# I feel silly! attachMovie problem

**URL:** https://forum.kirupa.com/t/i-feel-silly-attachmovie-problem/30246
**Category:** Uncategorized
**Created:** [September 5, 2003, 10:09pm UTC](https://forum.kirupa.com/t/i-feel-silly-attachmovie-problem/30246 "2003-09-05T22:09:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kdzines](https://avatars.discourse-cdn.com/v4/letter/k/7ea924/32.png) [@kdzines](https://forum.kirupa.com/u/kdzines)
#### Post date: [September 5, 2003, 10:09pm UTC](https://forum.kirupa.com/t/i-feel-silly-attachmovie-problem/30246/1 "2003-09-05T22:09:10Z")

</div>

hey,

i am working on a menu with sub menus and am using attachMovie for the first time.

i have an mc inside which there are 3 mc buttons:

butt1  
butt2  
butt3

the linkage name is “subnav” and export in first frame is checked.  
i have an empty mc on the main stage called “subholder”

on the main stage i have these actions on a frame:

```auto

mainbutt.onPress = function(){
subholder.attachMovie("subnav", "subnav1", 5);
}

```

ok, so far so good. When i click mainbutt, the subnav movie is attached and everything is perfect.

here is the problem.

now i want to ad code on the main stage to get the sub buttons to do things.

so i wrote this:

```auto

subnav1.butt1.onPress = function(){
trace("clicked");
}

```

just to test my pathing. Well it didn’t work!

other pathing i tried:

\_root.subnav1.butt1.onPress  
\_root.subholder.subnav1.butt1.onPress

i’m being an idiot and doing something wrong. Can anyone figure out what?

if i name the instance of the attached movie as “subnav1”, then why am i having trouble dealing with it once that mc is attached?

sure its something simple, cheers

kd
