I want to reduce the width of a rectangle every tick in an animation.
In the init() method, I initially create the rectangle with:
var graphics = new createjs.Graphics().beginFill("green").drawRect(650, 90, 280, 8);
var shape = new createjs.Shape(graphics);
stage.addChild(shape);
How can I access the width of the rectangle in tick()?