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

**URL:** https://forum.kirupa.com/t/f5-arg-for-actionscript-guru-beginner-needs-help/187345
**Category:** Uncategorized
**Created:** [April 28, 2006, 1:57pm UTC](https://forum.kirupa.com/t/f5-arg-for-actionscript-guru-beginner-needs-help/187345 "2006-04-28T13:57:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Edurs2000](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Edurs2000](https://forum.kirupa.com/u/Edurs2000)
#### Post date: [April 28, 2006, 1:57pm UTC](https://forum.kirupa.com/t/f5-arg-for-actionscript-guru-beginner-needs-help/187345/1 "2006-04-28T13:57:01Z")

</div>

[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]

---

<div class="post-metadata">

### Author: ![Edurs2000](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Edurs2000](https://forum.kirupa.com/u/Edurs2000)
#### Post date: [May 1, 2006, 4:35am UTC](https://forum.kirupa.com/t/f5-arg-for-actionscript-guru-beginner-needs-help/187345/2 "2006-05-01T04:35:57Z")

</div>

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++;  
}  
}  
}

---

<div class="post-metadata">

### Author: ![thesean](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@thesean](https://forum.kirupa.com/u/thesean)
#### Post date: [May 1, 2006, 5:12am UTC](https://forum.kirupa.com/t/f5-arg-for-actionscript-guru-beginner-needs-help/187345/3 "2006-05-01T05:12:31Z")

</div>

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

```auto
if (count > 15) {

```

to a smaller number, like 5.
