# Refering to nested movieclips

**URL:** <https://forum.kirupa.com/t/refering-to-nested-movieclips/20829>\
**Category:** Uncategorized\
**Created:** [May 13, 2003, 10:05pm UTC](https://forum.kirupa.com/t/refering-to-nested-movieclips/20829 "2003-05-13T22:05:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deeplybreathe](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@deeplybreathe](https://forum.kirupa.com/u/deeplybreathe)\
**Post date:** [May 13, 2003, 10:05pm UTC](https://forum.kirupa.com/t/refering-to-nested-movieclips/20829/1 "2003-05-13T22:05:07Z")

</div>

All right. I want to do something simple. Or at least it should be.

In the main timeline, I have a keyframe where I have the majority of my actions. Also, I have a large movieclip with all my nav buttons inside of it, and inside each button I have a small movieclip.

I want to move the “small” movieclip inside the button down a little bit when the user clicks on the button. Simple enough.

So in the actions keyframe I have…

```auto

_root.nav.news.onRelease = function() 
{
	_root.nav.news.navfade._y += 10;
	trace("yo");
}

```

For your information:  
“nav” is the large movieclip with the buttons in it  
“news” is one of the buttons  
“navfade” is the small movieclip inside the button

The problem is that the “navfade” movieclip refuses to move. I know that the onRelease function is working, because the trace works. However, the movieclip just doesn’t move.

I’m not sure if I’m referencing the small movieclip correctly… Please help!

Thanks in advance,  
Matt

---

<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:** [May 13, 2003, 11:38pm UTC](https://forum.kirupa.com/t/refering-to-nested-movieclips/20829/2 "2003-05-13T23:38:38Z")

</div>

I need to figure this out tonight, so if someone could help I’d really appreciate it. I’ll give you a dollar.

Well maybe not, but still…

Matt

---

<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:** [May 13, 2003, 11:42pm UTC](https://forum.kirupa.com/t/refering-to-nested-movieclips/20829/3 "2003-05-13T23:42:32Z")

</div>

send me the file at [jedick1@binghamton.edu](mailto:jedick1@binghamton.edu) i’ll take a quick look. its probably just a reference problem…

---

<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:** [May 14, 2003, 12:03am UTC](https://forum.kirupa.com/t/refering-to-nested-movieclips/20829/4 "2003-05-14T00:03:09Z")

</div>

yeah, you can’t do that with buttons. You cant target movieclips like that inside of a button. Gotta use movieclips for that kind of thing…
