# Weird hittest

**URL:** https://forum.kirupa.com/t/weird-hittest/38459
**Category:** flash
**Created:** [December 23, 2003, 4:37am UTC](https://forum.kirupa.com/t/weird-hittest/38459 "2003-12-23T04:37:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zeka](https://avatars.discourse-cdn.com/v4/letter/z/c6cbf5/32.png) [@zeka](https://forum.kirupa.com/u/zeka)
#### Post date: [December 23, 2003, 4:37am UTC](https://forum.kirupa.com/t/weird-hittest/38459/1 "2003-12-23T04:37:39Z")

</div>

When I load my fla, the hit ctrl-enter to play it and it loads fine. I have a box named backg around the edge of the stage and I have my character. Now when I move to the left and right sides of the stage and the character hits the box, its stops fine 🙂 But when the character hits the top and bottom of the box, it just keeps on walking :h: What do I have wrong?

Thx :toad:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2003, 5:30am UTC](https://forum.kirupa.com/t/weird-hittest/38459/2 "2003-12-23T05:30:25Z")

</div>

bump :ne:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2003, 11:14am UTC](https://forum.kirupa.com/t/weird-hittest/38459/3 "2003-12-23T11:14:12Z")

</div>

Patience, my friend;)

I think for the vertical movement it should be:[AS]if (\_parent.backg.hitTest(this.\_x, this.\_y, true)) {[/AS]

you had “box” in stead of “backg”

scotty(-:
