var shape:Shape = new Shape(); shape.graphics.beginFill(0x53BA27); shape.graphics.drawRect(0, 0, 100, 100); shape.graphics.beginFill(0xB8BB26); shape.graphics.drawRect(25, 25, 50, 50); shape.graphics.endFill(); addChild(shape);