# Frame change won't work

**URL:** <https://forum.kirupa.com/t/frame-change-wont-work/312836>\
**Category:** Uncategorized\
**Created:** [August 13, 2010, 4:10pm UTC](https://forum.kirupa.com/t/frame-change-wont-work/312836 "2010-08-13T16:10:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pizzadude223](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@pizzadude223](https://forum.kirupa.com/u/pizzadude223)\
**Post date:** [August 13, 2010, 4:10pm UTC](https://forum.kirupa.com/t/frame-change-wont-work/312836/1 "2010-08-13T16:10:36Z")

</div>

I have this code in an object:

onClipEvent(enterFrame){  
if (this.hitTest(\_parent.character)) {  
gotoAndPlay(“5”);  
}  
}

I did trace(\_parent.character) and that works, but the collision doesn’t, and I did name a frame 5, so why doesn’t it work?
