Drawing with as problem

Can someone explain to me or point to somewhere where I can learn why objects change their coordinates in certain situations. To be more specific and give an exmaple I have this simple code that draws a small rectangle. The starting position is fine and then when i rotate it by 45 degrees I wanted it to stay in the same spot and just rotate. But, it doesn’t do that it moves to different locations on the screen and child2 coordinates are always showing to be 0,0 in trace. This confuses the heck out of me as I can never plan where the objects will appear.
Also, this block of code is within a class that extends MovieClip.

var child2:Shape = new Shape();
            child2.graphics.beginFill(0x000DDD);

            child2.graphics.drawRect(190, 120, 15, 5);
            child2.graphics.endFill();
            child2.rotation = 45;
            trace(child2.x);
            trace(child2.y);            
            addChild(child2);

Big thanks to the almighty guru who will make this probably simple issue understandable to me.:hr: