Base EaselJS Fiddle #1

Sets up a canvas, stage, and tick

by dirkk0

HTML

<canvas id="canvas" width="800" height="600"></canvas>

JavaScript

var stage = new createjs.Stage("canvas");

createjs.Ticker.addEventListener("tick", tick);

var shape = new createjs.Shape(
    new createjs.Graphics().f("#f00").dc(0,0,100)
).set({x:100,y:100});
stage.addChild(shape);

shape.addEventListener("click", function(){
    shape.x = Math.random() * 100 + 100;
    stage.removeChild(shape);
});
shape.cursor = "none";

stage.enableMouseOver(2);

function tick() { 
    console.log(shape.x);
    stage.update();
}