Seems to be warning, but not error

Hi

I’m trying to draw rectangles with code.


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


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.