Dear all, I have this code that allows a clock hand to rotate around a clock.

Code:
onClipEvent(load){
secondTime = 2560;
startTime = getTimer();
}

onClipEvent(enterFrame){
	if(getTimer()-startTime>=2560){
elapsed = (getTimer() - startTime) % secondTime;
	this._rotation = 360 * (elapsed/secondTime);
}
}
I would that the hand rotation stops on a keyboard or mouse event, remaining in the position of the last frame. So, I need to stop the onEnterFrame event, but I don't know how.

Can anybody help me, please? Sorry, but I'm not an actionscript programmer...

Thanks in advance.