# Frames per second (fps) / small problem

**URL:** <https://forum.kirupa.com/t/frames-per-second-fps-small-problem/119929>\
**Category:** Uncategorized\
**Created:** [August 19, 2004, 8:09am UTC](https://forum.kirupa.com/t/frames-per-second-fps-small-problem/119929 "2004-08-19T08:09:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lobo\_](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@Lobo\_](https://forum.kirupa.com/u/Lobo_)\
**Post date:** [August 19, 2004, 8:09am UTC](https://forum.kirupa.com/t/frames-per-second-fps-small-problem/119929/1 "2004-08-19T08:09:23Z")

</div>

I have a movie container (fps:30) that load other movie that I want on 20 fps in this movie I have 20 frames on the 2 first frames a preloader and in the next 20 I have one MC with a image sequence, to control the fps of this Movie (MC) I use this code attach to my MC

**FPS controler:**

```php
onClipEvent(load){ 
stop() 
go=function(){ 
_currentframe>=_totalframes? clearInterval(interval) : nextFrame(); 
stop(); 
} 
interval=setInterval(go,(1000/12)) 
}

```

**preloader on my first frame:**

```php
bytes_loaded = Math.round(getBytesLoaded()); 
bytes_total = Math.round(getBytesTotal()); 
getPercent = bytes_loaded/bytes_total; 
loadBar._width = getPercent*100; 
loadText = Math.round(getPercent*100)+"%"; 
if (bytes_loaded == bytes_total) { 
gotoAndPlay(3); 
}

```

\*\*Problem: \*\* The problem is that in each run of the MC my movie stop for 2 seconds and the loop is not continues, how can I fix this problem  
**Take a look by your self:**  
[http://138.188.237.103/cielo.swf](http://138.188.237.103/cielo.swf)

_ **Thank you for any help** _  
_Lobo_ :goatee:

---

<div class="post-metadata">

**Author:** ![Lobo\_](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@Lobo\_](https://forum.kirupa.com/u/Lobo_)\
**Post date:** [August 23, 2004, 9:32am UTC](https://forum.kirupa.com/t/frames-per-second-fps-small-problem/119929/2 "2004-08-23T09:32:05Z")

</div>

help please!

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [August 23, 2004, 10:36am UTC](https://forum.kirupa.com/t/frames-per-second-fps-small-problem/119929/3 "2004-08-23T10:36:29Z")

</div>

you cant have two movies running at two different FPS. When you load one movie into another, the movie loaded takes on the FPS of the one its being loaded into

---

<div class="post-metadata">

**Author:** ![Lobo\_](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@Lobo\_](https://forum.kirupa.com/u/Lobo_)\
**Post date:** [August 23, 2004, 1:06pm UTC](https://forum.kirupa.com/t/frames-per-second-fps-small-problem/119929/4 "2004-08-23T13:06:27Z")

</div>

ThanX senocular, but that is why im here (hehehe) I read that I can control FPS making use of ActionScript, becouse the “External movie” has inside a MC that I want to make run at 12 Frames per second, I post the code that can make this posible in the top :sen: but their is a small problem:

:red: [COLOR=Red]Problem: The problem is that in each run of the MC my movie stop for 2 seconds and the loop is not continues, how can I fix this problem[/COLOR]Take a look by your self:  
[http://138.188.237.103/cielo.swf](http://138.188.237.103/cielo.swf)

Any ideas how I can solve this problem?, Thank you in advance

---

<div class="post-metadata">

**Author:** ![Lobo\_](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@Lobo\_](https://forum.kirupa.com/u/Lobo_)\
**Post date:** [August 24, 2004, 7:27am UTC](https://forum.kirupa.com/t/frames-per-second-fps-small-problem/119929/5 "2004-08-24T07:27:28Z")

</div>

:ear: help please

---

<div class="post-metadata">

**Author:** ![JustinM](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@JustinM](https://forum.kirupa.com/u/JustinM)\
**Post date:** [August 24, 2004, 1:09pm UTC](https://forum.kirupa.com/t/frames-per-second-fps-small-problem/119929/6 "2004-08-24T13:09:21Z")

</div>

Is it absolutely necessary that the movie you’re loading runs at a different fps rate? I’ve tried the same type of thing with nothing but problems. I might suggest actually changing the number of frames within the movie you are loading to run it at the same number of fps as the movie that is loading it.

---

<div class="post-metadata">

**Author:** ![Lobo\_](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@Lobo\_](https://forum.kirupa.com/u/Lobo_)\
**Post date:** [August 25, 2004, 6:34am UTC](https://forum.kirupa.com/t/frames-per-second-fps-small-problem/119929/7 "2004-08-25T06:34:10Z")

</div>

Hi JustinM and thank you for stop here!

YEs is important that the movie that Im loading run at 12 FPS becouse is a samll animition frame per frame (pictures) and I can’t add more frames becouse the animation is picture after picture.

---

<div class="post-metadata">

**Author:** ![JustinM](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@JustinM](https://forum.kirupa.com/u/JustinM)\
**Post date:** [August 25, 2004, 12:40pm UTC](https://forum.kirupa.com/t/frames-per-second-fps-small-problem/119929/8 "2004-08-25T12:40:43Z")

</div>

It looks like it runs at the slower rate for the first iteration of the loop but then speeds up. If it’s speeding up to the higher fps, then it may be finishing it’s animation before the main movie loops it. If you post the fla, I’ll take a look when I get some extra time.
