[F5]Arg! For Actionscript Guru! Beginner needs help!

[SIZE=2]hi…
I developed a project where the user click with the left button of mouse and advances a frame (nextFrame)end to click with the right button comes back a frame (prevFrame).
The problem is that if your button is pressured by much time, the film advances many frames of a time.
I would like that somebody I could help to me indicating me some code or tutorial where I can control this button´s sensitivity.

[/SIZE]

Do you know how to change the couter to set interval?
May be will be faster…

var flag:Boolean=true;

stop();
count = 0;
this.onEnterFrame = function(){
if(flag){
if (count > 15) { //this higher this number is, the longer the delay
count = 0;
if (Key.isDown(1)){
nextFrame();
}
if (Key.isDown(2)){
prevFrame();
}
} else {
count++;
}
}
}

I’m afraid I don’t understand the question. If you want it to work faster, just change the line

if (count > 15) {

to a smaller number, like 5.