//get the rotation of object
var objRotation:Number = objBox.rotation;

//check if it rotate
if(objRotation != 0)
{
//rotate it to Zero
objBox.rotation = 0;
}

//get width and height
thisWidth = objBox.width;
thisHeight = objBox.height;

//rotate
objBox.rotation = objRotation