moveMc(this.ball1, 1); moveMc(this.ball2, 2); moveMc(this.ball3, 3); moveMc(this.ball4, 4); moveMc(this.ball5, 5); moveMc(this.ball6, 6); function moveMc(ziel, zeit) { createjs.Tween.get(ziel) .to({x: Math.random() * 500 +20,y: Math.random() *350 + 20}, (0.5 + zeit * 0.06) * 1500, createjs.Ease.getPowInOut(2)) .call(moveMc,[ziel, zeit]); }