<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
var stage = acgraph.create('container');
// Gets bounds.
var bounds = stage.getBounds();
var rectangle = stage.rect();
rectangle.setBounds(bounds);