Canvas

How to create a canvas in AS3 for CS4 ? wat is the header file to be included ? Is this code right?

canvas:Canvas = new Canvas();
canvas.setStyle(“backgroundColor”, 0xff0000);
addChild(canvas);

but this is not working. Suggestions ?