getChildAt problem

How would I trace the x value of a child of Snap_container. I don’t understand why this doesn’t work.



var Snap_container:Sprite = new Sprite();
this.addChild(Snap_container);

var Snap_point:Sprite;
function addSnap(X:Number, Y:Number):void{
    Snap_point = new Sprite;
    Snap_point.graphics.lineStyle(1,0);
    Snap_point.graphics.drawCircle(X,Y,5);
    Snap_point.graphics.beginFill(0x0000FF,1);
    Snap_point.graphics.endFill();
    Snap_container.addChild(Snap_point);
    trace(Snap_container.numChildren);
}

addSnap(350,350);
addSnap(30,30);

var TEST:Sprite = Snap_container.getChildAt(0);
trace(TEST.x);

;

I get : 1118: Implicit coercion of a value with static type flash.display:DisplayObject to a possibly unrelated type flash.display:Sprite.

Thanks.