# gotoAndStop frame 4 help :}

**URL:** <https://forum.kirupa.com/t/gotoandstop-frame-4-help/298800>\
**Category:** flash\
**Created:** [October 25, 2009, 4:21pm UTC](https://forum.kirupa.com/t/gotoandstop-frame-4-help/298800 "2009-10-25T16:21:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![parasitic](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@parasitic](https://forum.kirupa.com/u/parasitic)\
**Post date:** [October 25, 2009, 4:21pm UTC](https://forum.kirupa.com/t/gotoandstop-frame-4-help/298800/1 "2009-10-25T16:21:19Z")

</div>

I have a little (ok, big) problem with my movieclip.  
This probabaly should be in the game section, but it’s more of an actionscript help, so I think someone could help me out with this here.

My movieclip has actionscript code that checks if “char” movieclip touches it (hitTest) if so then it should gotoAndStop on frame 4 of the main timeline.

here’s the actual code:

```auto
 
onClipEvent (enterFrame) {
 if (this.hitTest(_root.char)) {
  gotoAndStop(4);
  
 }
}

```

However it doesn’t quite go to the frame 4, well I think it does, but the y and x positions are messed up, perhaps due to vCam on character. (I used the kirupa platform tutorial/code)  
All I see in the frame 4 is a blue background, but nothing else, so is there a way to tell the x and y positions when loading frame 4?

Any help would be really appreciated :love\_heart:
