# How to slow down tweens?

**URL:** <https://forum.kirupa.com/t/how-to-slow-down-tweens/20395>\
**Category:** flash\
**Created:** [May 8, 2003, 8:19am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395 "2003-05-08T08:19:16Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![onLOoker](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@onLOoker](https://forum.kirupa.com/u/onLOoker)\
**Post date:** [May 8, 2003, 8:19am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/1 "2003-05-08T08:19:16Z")

</div>

Does anyone know a way to slow down the tweens? I have tried using ease, by adjusting it to -50 and even -100, but it tweens still play very quickly. Any ideas?

---

<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:** [May 8, 2003, 8:25am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/2 "2003-05-08T08:25:50Z")

</div>

frame rate in state off 12 --\>6 for example

---

<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:** [May 8, 2003, 8:40am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/3 "2003-05-08T08:40:58Z")

</div>

Setting the frame rate lower works, but it causes all the tweens to slow down. How could I set certain tweens to be fast and some others to be slower?

---

<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:** [May 8, 2003, 8:47am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/4 "2003-05-08T08:47:46Z")

</div>

Just adjust the number of frames that the tween happens over.

So a long tween would occur over a space of say 40 frames, whilst a quick tween would only take 10 frames. 🙂

---

<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:** [May 8, 2003, 8:48am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/5 "2003-05-08T08:48:26Z")

</div>

there is something where you can said how fast an animation can be in the beginning and the ending

i look up it

under motion you see ease, that’s what you are looking for i think

---

<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:** [May 8, 2003, 8:53am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/6 "2003-05-08T08:53:42Z")

</div>

virus, i have tried that but it only works with the number of frames used for the movie clip.

I guess that’s the only to do it without, AS.

Do you know the AS to control the speed of the object or movie clip?

---

<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:** [May 8, 2003, 9:06am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/7 "2003-05-08T09:06:41Z")

</div>

sry,

with as, i can’t help you,

good luck

---

<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:** [May 8, 2003, 9:40am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/8 "2003-05-08T09:40:17Z")

</div>

post your code, onLOoker. 🙂

---

<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:** [May 8, 2003, 9:44am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/9 "2003-05-08T09:44:52Z")

</div>

file is too large.

---

<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:** [May 8, 2003, 9:45am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/10 "2003-05-08T09:45:42Z")

</div>

the code, not the .fla. 😛

---

<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:** [May 8, 2003, 9:46am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/11 "2003-05-08T09:46:01Z")

</div>

can you show me a sample script of controlling the speed. I can apply to it to my movie clip.

---

<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:** [May 8, 2003, 9:51am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/12 "2003-05-08T09:51:28Z")

</div>

a simple linear tween?

```auto
// protoype
MovieClip.prototype.linearTween = function(endx, endy, duration) {
	var x = (endx-this._x)/duration, y = (endy-this._y)/duration, t;
	this.onEnterFrame = function() {
		if (t++<duration) {
			this._x += x;
			this._y += y;
		} else {
			delete this.onEnterFrame;
		}
	};
};
// usage
myMovieClip.linearTween(240, 140, 48);

```

---

<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:** [May 8, 2003, 10:57am UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/13 "2003-05-08T10:57:38Z")

</div>

Hey Kax, I have another question. This is actually more important.

There’s a tutorial on here that explains how to do falling snow.

However, I have modified it to rain. The problem with this effect is it only works base on the size of the movie stage.

let’s say, I want it to rain or snow at a precise area, how would I calculate it for it to snow or rain at the certer point of the movie stage? The tutorial is on kirupa, falling know, under the flash mx, and special effects area of this website. Do you know how to resolve this problem?

---

<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:** [May 8, 2003, 12:10pm UTC](https://forum.kirupa.com/t/how-to-slow-down-tweens/20395/14 "2003-05-08T12:10:13Z")

</div>

sorry… i didn’t see your last reply. :-\

anyway, here you go.
