<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
var stage = acgraph.create('container');
stage.rect(30, 30, 130, 50);
var simpleText = stage.text(30, 30);
simpleText.height(50);
simpleText.width(130);
// Gets horizontal align.
var value = simpleText.hAlign();
simpleText.text('Horizontal align is ' + value);