Hittest ball

im confused about shapeflag and this

Im trying to make a rollable ball on ground so I need to elminate the square that’s invisable around the ball and make to where if any part of the circle(left, right, top, bottom, diagnaly)
is hit it actualy hits the circle not the invisable square.

so if it rolls and hits its side it will be on the side, not just on the square.

here is the drawing code(im making it where u draw the ground)


// 1. SETTING THINGS
_root.createEmptyMovieClip("line",1);

// 2. EVENTS IN _ROOT:
_root.onMouseDown = function(){
	line.moveTo(_xmouse,_ymouse);
	line.lineStyle(2,0x000000,100);
	this.onMouseMove = function(){
		line.lineTo(_xmouse,_ymouse);
		updateAfterEvent();
	}
}
_root.onMouseUp = function(){
	this.onMouseMove = null;
}

here is the action script for my movie clip im having trouble with


if (line.hitTest(this._x, this._y, true)) {
	}

im trying to make it to where if there is a curve he will hug that curve

it falls past “line”.
is it because when I draw it, it is just making the movieclip called “line” so therefore not work or what?