# Adding a single Sprite on the main moviclip, Sprite remains invisible -- why?

**URL:** https://forum.kirupa.com/t/adding-a-single-sprite-on-the-main-moviclip-sprite-remains-invisible-why/283109
**Category:** Uncategorized
**Created:** [March 2, 2009, 7:31pm UTC](https://forum.kirupa.com/t/adding-a-single-sprite-on-the-main-moviclip-sprite-remains-invisible-why/283109 "2009-03-02T19:31:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![javadesigner](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@javadesigner](https://forum.kirupa.com/u/javadesigner)
#### Post date: [March 2, 2009, 7:31pm UTC](https://forum.kirupa.com/t/adding-a-single-sprite-on-the-main-moviclip-sprite-remains-invisible-why/283109/1 "2009-03-02T19:31:54Z")

</div>

I created a new AS3 document (550px by 400px) and added the following code to the first frame.

However, when I run this, I see nothing painted on the screen at all, the screen remains completely white.

Any ideas why ?

```auto

var m = new Sprite();
m.width = 200; 
m.height = 200;
//uncommenting makes no difference either
//m.stageHeight = 200;
//m.stageWidth = 200;
m.x = 0;
m.y = 0;
addChild(m);
m.graphics.beginFill(0xff0000);
m.graphics.drawRect(0, 0, 100, 50);
m.graphics.endFill();
trace("is sprite visible: " + m.visible);

```
