# FPS Help

**URL:** <https://forum.kirupa.com/t/fps-help/15348>\
**Category:** flash\
**Created:** [March 13, 2003, 6:29am UTC](https://forum.kirupa.com/t/fps-help/15348 "2003-03-13T06:29:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chrisd7](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@Chrisd7](https://forum.kirupa.com/u/Chrisd7)\
**Post date:** [March 13, 2003, 6:29am UTC](https://forum.kirupa.com/t/fps-help/15348/1 "2003-03-13T06:29:46Z")

</div>

ok, i noticed on certain websites that some things go fast, and other things go slow,my ? is, when im making somthing, the FPS is set to like 24 will say, but say i wanna make it fast at first, then slow it down. can anyone help on this subject 🙂

---

<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:** [March 13, 2003, 7:24am UTC](https://forum.kirupa.com/t/fps-help/15348/2 "2003-03-13T07:24:16Z")

</div>

you can create a function like this:

```auto
fps = function() {
	this.nextFrame();
}

```

to speed up your movie you’d set an interval

```auto
fpsinterval = setInterval(fps, milliseconds);

```

and to restore the normal fps you just need to clear the interval

```auto
clearInterval(fpsinterval);

```

just use the milliseconds you want to the function to wait between every execution and that’s it 🙂

by the way … there are a few threads about this. i’d recommend a search 😉

---

<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:** [March 13, 2003, 7:28am UTC](https://forum.kirupa.com/t/fps-help/15348/3 "2003-03-13T07:28:17Z")

</div>

i didnt get any of that what soo ever, that Code stuff is new to me, is there other ways of breaking it down to my level :whistle:

---

<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:** [March 13, 2003, 7:35am UTC](https://forum.kirupa.com/t/fps-help/15348/4 "2003-03-13T07:35:22Z")

</div>

it’s not that hard 😉

in the first frame of the movie or a movie clip paste the function

let’s say that you want the first 120 frames to go at 48 frames per second. that would be something like 20 milliseconds … a little more i think.

in the first frame you’d have the interval

```auto
fpsinterval = setInterval(fps, 20);

```

then at frame 120 you clear the interval

```auto
clearInterval(fpsinterval);

```

=)
