Thanks Medyman. But if I put this:
Code:
tmp_big.lineStyle(rectWidth, color_tmp, 100);
tmp_big.moveTo(0, rectHeight);
tmp_big.lineTo(0,0);
tmp_big._x = (Stage.width-1280)+ 640;
tmp_big._y = Stage.height/2;
The line comes out round and the height has the same problem. So here is a workaround I did.
Code:
/* tmp_big.lineStyle(1,color_tmp,100,true,"none","square");
tmp_big.beginFill(color_tmp, 100);
tmp_big.moveTo(0, 0);
tmp_big.lineTo(0, rectHeight);
tmp_big.lineTo(rectWidth, rectHeight);
tmp_big.lineTo(rectWidth,0);
tmp_big.lineTo(0,0);
tmp_big.endFill();
tmp_big._x = ((Stage.width-1280)+ 640) - (rectHeight/2);
tmp_big._y = (Stage.height/2) - (rectWidth/2);
The problem with this is that the registration point os no longer middle. Is there a reason ?
Please help.
Bookmarks