# Fast/Slow Buttons

**URL:** https://forum.kirupa.com/t/fast-slow-buttons/102080
**Category:** Uncategorized
**Created:** [February 19, 2004, 3:19pm UTC](https://forum.kirupa.com/t/fast-slow-buttons/102080 "2004-02-19T15:19:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DavidP](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@DavidP](https://forum.kirupa.com/u/DavidP)
#### Post date: [February 19, 2004, 3:19pm UTC](https://forum.kirupa.com/t/fast-slow-buttons/102080/1 "2004-02-19T15:19:25Z")

</div>

Hi,

I’m trying to create a button that when pressed, will increase the frame rate speed, and when clicked again, will slow it back down. Does anybody know if this is possible and how it can be accomplished?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 19, 2004, 8:45pm UTC](https://forum.kirupa.com/t/fast-slow-buttons/102080/2 "2004-02-19T20:45:33Z")

</div>

It is possible and it is accomplished with the setInterval function. There is a tutorial about this on THIS VERY SITE.

[http://www.kirupa.com/developer/actionscript/setinterval.htm](http://www.kirupa.com/developer/actionscript/setinterval.htm)
