Motion Guide Plugin sample

HTML

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

JavaScript

var stage = new createjs.Stage("canvas");
createjs.Ticker.addEventListener("tick", tick);
createjs.MotionGuidePlugin.install();

var shape = new createjs.Shape();
shape.graphics.beginFill("#ff00ff").drawCircle(0,0,50);
stage.addChild(shape);

createjs.Tween.get(shape).to({guide:{ path:[0,0, 0,200,200,200] }},3000);

var path = new createjs.Shape();
path.graphics.beginStroke("#ff00ff").moveTo(0,0).curveTo(0,200,200,200);
stage.addChild(path);

function tick(event) {
    stage.update();
}