# Coding check

**URL:** <https://forum.kirupa.com/t/coding-check/291766>\
**Category:** flash\
**Created:** [July 5, 2009, 2:24am UTC](https://forum.kirupa.com/t/coding-check/291766 "2009-07-05T02:24:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arcaian](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Arcaian](https://forum.kirupa.com/u/Arcaian)\
**Post date:** [July 5, 2009, 2:24am UTC](https://forum.kirupa.com/t/coding-check/291766/1 "2009-07-05T02:24:47Z")

</div>

I have a char called david with the instance name david2, and he walks around with the arrowkeys. There is a castle in the background and I have a line around it that has the following coding on it :

onClipEvent(load){  
if (this.hitTest(\_root.david2))  
gotoAndPlay(“nearcastle”)  
}

I have another frame called nearcastle and when I run into the line nothing happens. Does anyone know why this is ?
