# Drawing with as problem

**URL:** <https://forum.kirupa.com/t/drawing-with-as-problem/282760>\
**Category:** flash\
**Created:** [February 26, 2009, 3:48am UTC](https://forum.kirupa.com/t/drawing-with-as-problem/282760 "2009-02-26T03:48:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cac3a](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@cac3a](https://forum.kirupa.com/u/cac3a)\
**Post date:** [February 26, 2009, 3:48am UTC](https://forum.kirupa.com/t/drawing-with-as-problem/282760/1 "2009-02-26T03:48:06Z")

</div>

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._

```auto
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:
