# getBounds huh?

**URL:** <https://forum.kirupa.com/t/getbounds-huh/293580>\
**Category:** flash\
**Created:** [July 31, 2009, 12:30am UTC](https://forum.kirupa.com/t/getbounds-huh/293580 "2009-07-31T00:30:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdq](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@tdq](https://forum.kirupa.com/u/tdq)\
**Post date:** [July 31, 2009, 12:30am UTC](https://forum.kirupa.com/t/getbounds-huh/293580/1 "2009-07-31T00:30:18Z")

</div>

Another newbie question.  
I’ve added a rectangle (testRect) movieclip to my stage.  
The rectangle is placed at 200,100 and is 100 pixels across and 50 pixels tall. The stage is 800x600.

Here is my code  
var b:Rectangle = getBounds(testRect);  
trace (b.x, b.y, b.top, b.bottom, b.width, b.height);

When I run it I would expect 200,100,100,200,100,50  
but no, I get  
-45.5 -31.5 -31.5 31.5 91 63  
Huh?

I added a fullscreen rectangle behind my testRect and now I get  
-182 -378 -378 378 728.05 756  
Double Huh?

Can someone explain what is going on?
