# Framerate User Controls

**URL:** <https://forum.kirupa.com/t/framerate-user-controls/185172>\
**Category:** flash\
**Created:** [April 11, 2006, 3:14pm UTC](https://forum.kirupa.com/t/framerate-user-controls/185172 "2006-04-11T15:14:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![awholeuniverse](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@awholeuniverse](https://forum.kirupa.com/u/awholeuniverse)\
**Post date:** [April 11, 2006, 3:14pm UTC](https://forum.kirupa.com/t/framerate-user-controls/185172/1 "2006-04-11T15:14:18Z")

</div>

Hello there! Here is the issue : I have to make a flash movie that would allow the user to control the framerate of the movie.  
Unfortunately I’m not that good with flash and I don’t know how that could be done …I thought about something like"on(press){  
movieclip.increaseframerate(\*2);

}" .Could anybody give me a hint as to what actionscript command I should use or if you guys know any tutorials on the web that explain this, I would be extremely gratefull

Thank you!

---

<div class="post-metadata">

**Author:** ![g5604](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@g5604](https://forum.kirupa.com/u/g5604)\
**Post date:** [April 11, 2006, 3:56pm UTC](https://forum.kirupa.com/t/framerate-user-controls/185172/2 "2006-04-11T15:56:24Z")

</div>

pretty sure that that is impossible ☹

---

<div class="post-metadata">

**Author:** ![awholeuniverse](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@awholeuniverse](https://forum.kirupa.com/u/awholeuniverse)\
**Post date:** [April 11, 2006, 7:56pm UTC](https://forum.kirupa.com/t/framerate-user-controls/185172/3 "2006-04-11T19:56:55Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [April 11, 2006, 9:19pm UTC](https://forum.kirupa.com/t/framerate-user-controls/185172/4 "2006-04-11T21:19:26Z")

</div>

it is, you can use intervals instead… may not be as good however. but like

```auto

var frameRate:Number = 30;
runningGame = setInterval(runGame, frameRate);
function runGame(){
	trace("blah");
             /*
             Insert game actions...
             */
}

```

May not be as effiecient, as I said, but its ok.  
But whenever you leave the frame, or want the game to restart, you need to use:

```auto

clearInterval(runningGame);

```
