# Adjusting frame rate of imported movie

**URL:** <https://forum.kirupa.com/t/adjusting-frame-rate-of-imported-movie/185099>\
**Category:** Uncategorized\
**Created:** [April 10, 2006, 10:55pm UTC](https://forum.kirupa.com/t/adjusting-frame-rate-of-imported-movie/185099 "2006-04-10T22:55:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashras99](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@ashras99](https://forum.kirupa.com/u/ashras99)\
**Post date:** [April 10, 2006, 10:55pm UTC](https://forum.kirupa.com/t/adjusting-frame-rate-of-imported-movie/185099/1 "2006-04-10T22:55:35Z")

</div>

My main movie is running at 30fps and i imported a previously created animation i.e 12fps…now my both the movies playing at 30fps.

I want to run the 12fps movieclip to run at 12fps and not on 30fps. Pleease tell me which code will do this…i have read other posts in the forum…but not clear, so anyone can help.

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [April 10, 2006, 11:14pm UTC](https://forum.kirupa.com/t/adjusting-frame-rate-of-imported-movie/185099/2 "2006-04-10T23:14:44Z")

</div>

It’s not possible to change the frame rate with AS but you can play the frames using setInterval. I can’t save to MX so hopefully someone can convert it for you or you can try and make sense of this code:

first frame of animation:

```auto
if (!playInt) {
 this.stop();
 var playInt = setInterval(this, "nextFrame", 1000 / 12);
}

```

last frame of animation:

```auto
this.gotoAndStop(1);

```

🙂

---

<div class="post-metadata">

**Author:** ![ashras99](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@ashras99](https://forum.kirupa.com/u/ashras99)\
**Post date:** [April 10, 2006, 11:51pm UTC](https://forum.kirupa.com/t/adjusting-frame-rate-of-imported-movie/185099/3 "2006-04-10T23:51:48Z")

</div>

Thanks, this is working fine.
