# Am I doing something wrong here? (drawRect not showing up)

**URL:** <https://forum.kirupa.com/t/am-i-doing-something-wrong-here-drawrect-not-showing-up/324086>\
**Category:** flash\
**Created:** [August 1, 2011, 5:16pm UTC](https://forum.kirupa.com/t/am-i-doing-something-wrong-here-drawrect-not-showing-up/324086 "2011-08-01T17:16:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cam94509](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@cam94509](https://forum.kirupa.com/u/cam94509)\
**Post date:** [August 1, 2011, 5:16pm UTC](https://forum.kirupa.com/t/am-i-doing-something-wrong-here-drawrect-not-showing-up/324086/1 "2011-08-01T17:16:53Z")

</div>

I’m using this code to try to draw a background (actually, I’m using modified versions of it to  
do all sorts of stuff, but w/e, the background isn’t drawing, even when I comment the rest of  
the drawing fail out):

var g:Graphics = this.graphics;  
var a:Rectangle = new Rectangle(0, 0, 25, 25); //I use this later in the function  
g.beginFill(0xFBD6D6)  
g.drawRect(0, 0, 400, 400);  
g.endFill();

Am I doing something wrong here? Or is my mistake elsewhere?
