# Nav test movie clip inside a movie clip

**URL:** <https://forum.kirupa.com/t/nav-test-movie-clip-inside-a-movie-clip/168830>\
**Category:** Uncategorized\
**Created:** [November 10, 2005, 1:50pm UTC](https://forum.kirupa.com/t/nav-test-movie-clip-inside-a-movie-clip/168830 "2005-11-10T13:50:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![john268](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/john268/32/1846_2.png) [@john268](https://forum.kirupa.com/u/john268)\
**Post date:** [November 10, 2005, 1:50pm UTC](https://forum.kirupa.com/t/nav-test-movie-clip-inside-a-movie-clip/168830/1 "2005-11-10T13:50:12Z")

</div>

:thumb2: i was trying to put a movie clip inside a movie clip using a nav test. I received a code that said this…  
[color=black][font=Verdana][/font][/color]  
[color=black][font=Verdana]//set navtest to 1 in first frame of parent movie  
onClipEvent(enterFrame){  
if(this.hitTest(\_root.\_xmouse,\_root.\_ymouse,true)) {  
\_root.navtest = \_root.navtest + 1

trace(\_root.navtest);  
if(\_root.navtest == 2){  
trace(“test”)  
gotoAndPlay(2);  
}

}  
else {  
\_root.navtest = 1  
gotoAndStop(1);  
}  
}

note that \_root.navtest must be set to 1 in the main timeline.[/font][/color]  
[color=black][font=Verdana][/font][/color]  
[color=black][font=Verdana]does any one know where to put this code and how to go about doing this. if you have any examples that would be awesome. thanks for reading!!!:beam: [/font][/color]
