var FPS = 60; var canvas = document.getElementById("testCanvas"); var stage = new createjs.Stage(canvas); if (createjs.Touch.isSupported()) { createjs.Touch.enable(stage, false, false); } createjs.Ticker.setFPS(FPS); createjs.Ticker.addEventListener("tick", handleTick); stage.addEventListener("stagemousedown", mouseDown); stage.addEventListener("stagemousemove", mouseMove); stage.addEventListener(