Line.clear problem



if(mc1.hitTestObject(mc2))
{
	if (!myScore)
	
		{
mc1.x=110;
mc1.y=170;


lineg.graphics.clear();
lineg.graphics.lineStyle(2, 000000);
lineg.graphics.moveTo(mc1.x, mc1.y);
lineg.graphics.lineTo(mc2.x, mc2.y);
myScore += 1;
score_txt.text=String(myScore);
		
		}


}




else {




mc1.x=110;mc1.y=170;}
}

doesnt clear the line when mc1 moved ? How solve tihs problem?