var stage = acgraph.create("container");
textStyle = {fontFamily: "Georgia", fontSize: "15px", color: "green"};
text = acgraph.text(20, 20, "This is my custom text", textStyle);
rect = stage.rect(text.getX(), text.getY(), text.getWidth(), text.getHeight());