AS3.0: Drawing issue

hi there!

i am experimenting with basics of AS3.0 drawing api, and experiencing issue when nothing is displayed on the stage once program is executed.

i used this code:

package {
    import flash.display.MovieClip;
    import flash.display.Shape;
    
    public class DisplayList extends MovieClip {

        public function DisplayList() {
            var shape:Shape = new Shape();
                shape.graphics.lineStyle(0,0,1); // thickness,color,alpha
                shape.graphics.drawCircle(10,10,20);
            addChild(shape);
        }
    }
}

inside the class file (same name as the constructor and same as the class name), and called the

var my_test:DisplayList = new DisplayList();

in the 1st frame of the time line in flash9 public alpha, which creates my class instance.

This executes with no errors, just there is nothing drawn (circle is missing!) on the stage. Changing the properties of the circle doesnt help.

also i tried to copy+paste the code available at http://livedocs.macromedia.com/flex/2/langref/index.html (scroll to the end of the page):

 package {
    import flash.display.DisplayObject;
    import flash.display.Graphics;
    import flash.display.Shape;
    import flash.display.Sprite;

    public class GraphicsExample extends Sprite {
        private var size:uint         = 80;
        private var bgColor:uint      = 0xFFCC00;
        private var borderColor:uint  = 0x666666;
        private var borderSize:uint   = 0;
        private var cornerRadius:uint = 9;
        private var gutter:uint       = 5;

        public function GraphicsExample() {
            doDrawCircle();
            doDrawRoundRect();
            doDrawRect();
            refreshLayout();
        }

        private function refreshLayout():void {
            var ln:uint = numChildren;
            var child:DisplayObject;
            var lastChild:DisplayObject = getChildAt(0);
            lastChild.x = gutter;
            lastChild.y = gutter;
            for (var i:uint = 1; i < ln; i++) {
                child = getChildAt(i);
                child.x = gutter + lastChild.x + lastChild.width;
                child.y = gutter;
                lastChild = child;
            }
        }

        private function doDrawCircle():void {
            var child:Shape = new Shape();
            var halfSize:uint = Math.round(size / 2);
            child.graphics.beginFill(bgColor);
            child.graphics.lineStyle(borderSize, borderColor);
            child.graphics.drawCircle(halfSize, halfSize, halfSize);
            child.graphics.endFill();
            addChild(child);
        }

        private function doDrawRoundRect():void {
            var child:Shape = new Shape();
            child.graphics.beginFill(bgColor);
            child.graphics.lineStyle(borderSize, borderColor);
            child.graphics.drawRoundRect(0, 0, size, size, cornerRadius);
            child.graphics.endFill();
            addChild(child);
        }

        private function doDrawRect():void {
            var child:Shape = new Shape();
            child.graphics.beginFill(bgColor);
            child.graphics.lineStyle(borderSize, borderColor);
            child.graphics.drawRect(0, 0, size, size);
            child.graphics.endFill();
            addChild(child);
        }
    }
}

and changed the class name when creating class accordingly - but the output is the same: empty stage.

Anyone experienced the same problem?

thanks.