heres the corrected code
var back:Sprite = new Sprite();
back.graphics.beginFill(0x000000);
back.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
addChild(back);
line 1 creates the var back from the class Sprite(), the colon means derived from the class. The bg should be back...