Nav test movie clip inside a movie clip

: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]