# Seems to be warning, but not error

**URL:** <https://forum.kirupa.com/t/seems-to-be-warning-but-not-error/324830>\
**Category:** flash\
**Created:** [September 11, 2011, 2:36am UTC](https://forum.kirupa.com/t/seems-to-be-warning-but-not-error/324830 "2011-09-11T02:36:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![felastine](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@felastine](https://forum.kirupa.com/u/felastine)\
**Post date:** [September 11, 2011, 2:36am UTC](https://forum.kirupa.com/t/seems-to-be-warning-but-not-error/324830/1 "2011-09-11T02:36:36Z")

</div>

Hi

I’m trying to draw rectangles with code.

```auto

        public var panel:Shape;
        public function MenuPanel(iS:Boolean,xPos:Number,yPos:Number,w:Number, h:Number, cArray:Array) {
            panel = new Shape();
            panel.graphics.lineStyle(0,0);
            panel.graphics.beginFill(0xCCCCCC, 0.3);
            panel.graphics.drawRect(0,0,w,h);
            panel.graphics.endFill();
            addChild(panel);
//things below are irrelevant
            targetH = h;
            targetW = w;
            isSelected = iS;
            x = xPos;
            y = yPos;
            scaleFactorX = w/100;
            scaleFactorY = h/100;
            contentArray = cArray;
            addEventListener(Event.ENTER_FRAME, loadFirstTime);
        }

```

It worked just fine. The rectangle is drawn but I get this message in the **output** (not **compiler errors** ).

```auto

ArgumentError: Error #1063: Argument count mismatch on MenuPanel$iinit(). Expected 6, got 0.
    at flash.display::Sprite/flash.display:Sprite::constructChildren()
    at flash.display::Sprite$iinit()
    at flash.display::MovieClip$iinit()
    at Main$iinit()

```

This doesn’t prevent the swf to run, but how do I get rid of it?

Thanks in advance.  
Felastine.
