Hi sharks..

I've made a functions which creates rectangles:

function makeSquare(sgu:String,clo:uint):void {
var squ:Sprite = new Sprite();
addChild(squ);
squ.graphics.lineStyle(1,0x000000);
squ.graphics.beginFill(clo);
squ.graphics.drawRect(0,0,100,100);
squ.graphics.endFill();
squ.x = Math.round(Math.random() * 550);
squ.y = Math.round(Math.random() * 400);
}

Now my problem is; that i'm from another function would like to make a call, that deletes a specific rectangle previously generated by the above function. I just can't fingure out how - it's properly really simple, but i'm still a bit of a rockiee..

Hope someone can give me the answere.

Best regards from Denmark