Ball.onMouseDown= function() { //target is ball if(this.hitTest(_root._xmouse,_root._ymouse,true)){ ball._x = (Math.random()*300) ball._y = (Math.random()*300)