# Frame rate question

**URL:** <https://forum.kirupa.com/t/frame-rate-question/24700>\
**Category:** Uncategorized\
**Created:** [July 3, 2003, 6:28pm UTC](https://forum.kirupa.com/t/frame-rate-question/24700 "2003-07-03T18:28:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![worm](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/worm/32/235_2.png) [@worm](https://forum.kirupa.com/u/worm)\
**Post date:** [July 3, 2003, 6:28pm UTC](https://forum.kirupa.com/t/frame-rate-question/24700/1 "2003-07-03T18:28:53Z")

</div>

Just a question - if i dynamically import a swf into a movie, will it play at its original rate or will it readjst itself to the movie its imported into?

---

<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:** [July 3, 2003, 6:30pm UTC](https://forum.kirupa.com/t/frame-rate-question/24700/2 "2003-07-03T18:30:00Z")

</div>

original

Rev ![](http://www.aulman.com/rev.gif)

---

<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:** [July 3, 2003, 6:55pm UTC](https://forum.kirupa.com/t/frame-rate-question/24700/3 "2003-07-03T18:55:37Z")

</div>

…unless you have streaming audio in which case the Flash player will adjust to meet the framerate of that audio (which is sometimes used as a hack around adjusting FPS of a movie dynamically)

---

<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:** [July 3, 2003, 7:05pm UTC](https://forum.kirupa.com/t/frame-rate-question/24700/4 "2003-07-03T19:05:09Z")

</div>

what?  
I tryed it awhile ago, and the swf i imported dynamically started playing at a faster rate (the rate of the movie i imported it into)

---

<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:** [July 3, 2003, 7:12pm UTC](https://forum.kirupa.com/t/frame-rate-question/24700/5 "2003-07-03T19:12:26Z")

</div>

The FPS rate of the movie loaded inherits the FPS rate of the main movie it loads into.

---

<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:** [July 3, 2003, 7:14pm UTC](https://forum.kirupa.com/t/frame-rate-question/24700/6 "2003-07-03T19:14:11Z")

</div>

How can i get around this?

---

<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:** [July 3, 2003, 7:20pm UTC](https://forum.kirupa.com/t/frame-rate-question/24700/7 "2003-07-03T19:20:20Z")

</div>

You can create a mock FPS rate. Something like this on the first frame of your movie should do it…

[AS]  
//create the function to play the nextframe of the timeline  
function mockRate(){  
nextFrame();  
}  
//set fps rate value  
var fps = 12;  
//use setInterval to create the fake frame rate  
fauxFPS = setInterval(mockRate, 1000/fps);[/AS]

I hope that helps.

---

<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:** [July 3, 2003, 7:22pm UTC](https://forum.kirupa.com/t/frame-rate-question/24700/8 "2003-07-03T19:22:53Z")

</div>

the main movie or the one being imported

---

<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:** [July 3, 2003, 7:23pm UTC](https://forum.kirupa.com/t/frame-rate-question/24700/9 "2003-07-03T19:23:39Z")

</div>

The one being imported.

---

<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:** [July 7, 2003, 3:55pm UTC](https://forum.kirupa.com/t/frame-rate-question/24700/10 "2003-07-07T15:55:45Z")

</div>

Keep in mind that it depends on how you load the swfs. If you load a swf in at level 0 then it will replace the previous one and will be the “master control” movie and set the framerate. If you load in at any other level the original framerate will stay in control.

If you want to test it out, create a simple animation in a file and set it to a really high framerate–say 100 fps. Call it movie1 and publish it. Test it & you’ll see it plays at or near that frame rate.

Create a second file with two buttons. Set the framerate to 10 fps. On the first button, put :

on (release) {  
loadMovieNum(“movie1.swf”, 0);  
}

On the second button put:

on (release) {  
loadMovieNum(“movie1.swf”, 1);  
}

If save & publish it out & test it–you’ll see that if you click on the second button, it will load the animation in & play at the 10 fps. If you click on the first button, it will play at the 100 fps. In both cases, it’s loading the exact same swf but the target level dictates which swf controls the framerate.
