enterFrame is not good...
everybody should use setInterval(function name, 1000/fps,params)
like this:
i=0;
del = 1000/10;
inid = setInterval(this.game, del);
function game() {
i++;
trace(i);
}
this.onMouseDown = function () {
clearInterval(inid); /*because you can set a lot of intervals for a single function*/
del/=2;
inid = setInterval(this.game, del); // gamespeed doubled
}
now u can make dynamic gamespeed, like in gemcraft xD