# AS2:: Is not equal to hitTest

**URL:** <https://forum.kirupa.com/t/as2-is-not-equal-to-hittest/289293>\
**Category:** flash\
**Created:** [May 28, 2009, 4:42pm UTC](https://forum.kirupa.com/t/as2-is-not-equal-to-hittest/289293 "2009-05-28T16:42:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilleypants](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@lilleypants](https://forum.kirupa.com/u/lilleypants)\
**Post date:** [May 28, 2009, 4:42pm UTC](https://forum.kirupa.com/t/as2-is-not-equal-to-hittest/289293/1 "2009-05-28T16:42:58Z")

</div>

Hello,

I was just wondering if this is possible…

Can I write:

```auto
if (this.hitTest !=(HitTest_mc)) {
trace("not there");
}

```

Basically all I want it to do is I have a drag item and it can be dragged anywhere on the stage. If it hits - HitTest\_mc then it does one action but if when released it hits anywhere else in the stage it performs another.

I can’t do an else statement as it is on a MouseUp statement and it just mucks up other pieces of code.

Thanks,

Katy
