Ball.onMouseDown= function() { if(this.hitTest(_root._xmouse,_root._ymouse,true)){ ball._x = (Math.random()*500) ball._y = (Math.random()*500) score = score + 1 }