Thanks Medyman. But if I put this:
The line comes out round and the height has the same problem. So here is a workaround I did.
tmp_big.lineStyle(rectWidth, color_tmp, 100);
tmp_big._x = (Stage.width-1280)+ 640;
tmp_big._y = Stage.height/2;
The problem with this is that the registration point os no longer middle. Is there a reason ?
tmp_big._x = ((Stage.width-1280)+ 640) - (rectHeight/2);
tmp_big._y = (Stage.height/2) - (rectWidth/2);