moveMc(this.ball1); moveMc(this.ball2); moveMc(this.ball3); moveMc(this.ball4); moveMc(this.ball5); moveMc(this.ball6); function moveMc(ziel) { createjs.Tween.get(ziel).to({x: Math.random() * 500 +20,y: Math.random() *350 + 20}, 1000, createjs.Ease.getPowInOut(2)) .call(moveMc, [ziel]); }