<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
var stage = acgraph.create("container");
// Dragging area display.
var rectangle = stage.rect(10, 10, 150, 120);
rectangle.fill("#FFEB3B 0.05");
var blueCircle = stage.circle(75, 75, 25);
blueCircle.fill("#2196F3");
// Sets dragging of an element.
blueCircle.drag(rectangle.getBounds());