# Collision Help - Please?

**URL:** <https://forum.kirupa.com/t/collision-help-please/278538>\
**Category:** flash\
**Created:** [January 1, 2009, 7:46am UTC](https://forum.kirupa.com/t/collision-help-please/278538 "2009-01-01T07:46:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanDaMan](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Post date:** [January 1, 2009, 7:46am UTC](https://forum.kirupa.com/t/collision-help-please/278538/1 "2009-01-01T07:46:09Z")

</div>

Okay so I’m attempting to make a code that executes something when the cursor collides with a Movieclip called player. I’m having quite some trouble with the syntax, however. No matter how I try to fix the code, there’s always a syntax error involving a missing parenthesis.

```auto

Mouse.hide();
addEventListener(Event.ENTER_FRAME, moveCursor);
function moveCursor(event:Event):void{
    cursor.x = mouseX;
    cursor.y = mouseY;
    if(cursor.x >= player.x-player.x/2 and cursor.x <= player.x+player.x/2){
        if(cursor.y >= player.y-player.y/2 and cursor.y >= player.y+player.y/2){
        trace("hit");
}

```
