От жары у меня наверно что-то случилось с мозгом но я не пойму почему

Код AS3:
myRect.graphics.drawRect(x, y, x+40, y+40);
при x,y отличных от нуля делает прямоугольники....
Собственно весь пакет:

Код AS3:
package {
import flash.display.Sprite;
import flash.display.Shape;
public class Mesh extends Sprite
{
public static const NONE:uint = 0;
public static const STANDART:uint = 1;
public var myRect:Shape = new Shape();
public function Mesh()
{
//for(var i:int=0;i<maxX;i++){
drawRect(STANDART, 120, 0);
//}
}
public function drawRect(rectSize:uint, x:Number, y:Number):void {
myRect.graphics.beginFill(0xFFFFFF);
myRect.graphics.lineStyle(1);
switch(rectSize) {
case NONE:
break;
case STANDART:
myRect.graphics.drawRect(x, y, x+40, y+40);
default:
trace ("error in drawRect(): argument rectSize is not valid.");
break;
}
myRect.graphics.endFill();
this.addChild(myRect);
}
}
}
Заранее благодорю