# \[FMX\]Just curiosity

**URL:** <https://forum.kirupa.com/t/fmx-just-curiosity/117960>\
**Category:** Uncategorized\
**Created:** [August 1, 2004, 12:20pm UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960 "2004-08-01T12:20:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [August 1, 2004, 12:20pm UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960/1 "2004-08-01T12:20:37Z")

</div>

Is the number in a function representing the speed(in case of easing) equal to a certain amount of frames?

---

<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 1, 2004, 12:22pm UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960/2 "2004-08-01T12:22:41Z")

</div>

is there more to this? Is this from another thread? If so, let me know so I can move it there 😉 otherwise I think you may need to provide more detail of what it is you’re asking exactly

---

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [August 1, 2004, 12:33pm UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960/3 "2004-08-01T12:33:26Z")

</div>

No it’s not from another thread, but what I mean is this

Suppose I have a a function for an easing movement like:

```auto
function moveClip (clip, ypos, speed) {
 clip.onEnterFrame = function() {
  endY = ypos - this._y;
  this._y += endY / speed;
  if (Math.abs(endY)<2) {
  this._y = ypos
   delete this.onEnterFrame;
  }
 };
};
moveClip (myMovie, 300, 8);

```

My question is if the 8 in the callBack is equal to a certain amout of frames.

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [August 1, 2004, 12:35pm UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960/4 "2004-08-01T12:35:52Z")

</div>

The movie framerate is 12

Thanks in advance 🙂

---

<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 1, 2004, 12:41pm UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960/5 "2004-08-01T12:41:50Z")

</div>

well yeah, your question means nothing without that function 😉

8 is not frames in that instance, its a measurement of speed as the variable name indicates. Change the value of speed and the speed changes.

In terms of what it does mathmatically, speed actually represents a percentage of progression towards the target position. Each time the clip moves, it moves 1/speed percent towards the target, the idea being that each time you get closer to the desired location that percentage would get smaller and smaller and smaller which causes the easing in the movement (progressively reducing speed as the amount of movement decreases)

---

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [August 1, 2004, 12:50pm UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960/6 "2004-08-01T12:50:10Z")

</div>

I asked this because I saw an tutorial here on Kirupa with transitions between different external swf’s.(I think it was from Pom) Those where made with motion tweens. But I heard a lot of times that motion tweens, making your movie quit heavy so I figured, that if I know how many frames a movement made with action script takes, that I could make the same transitions with functions.

Thanks

---

<div class="post-metadata">

**Author:** ![pom](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@pom](https://forum.kirupa.com/u/pom)\
**Post date:** [August 2, 2004, 3:00pm UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960/7 "2004-08-02T15:00:49Z")

</div>

A tutorial of mine with motion tweens? I belive it when I see it :huh:

---

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [August 3, 2004, 10:12am UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960/8 "2004-08-03T10:12:44Z")

</div>

I found it back and it was indeed from Voetsjoeba! Sorry Pom 🙂

---

<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 3, 2004, 11:33am UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960/9 "2004-08-03T11:33:11Z")

</div>

yeah, I dont think pom learned motion tweens yet 😉

---

<div class="post-metadata">

**Author:** ![pom](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@pom](https://forum.kirupa.com/u/pom)\
**Post date:** [August 3, 2004, 2:34pm UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960/10 "2004-08-03T14:34:28Z")

</div>

😃 Title says different now 😉

---

<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 3, 2004, 2:40pm UTC](https://forum.kirupa.com/t/fmx-just-curiosity/117960/11 "2004-08-03T14:40:53Z")

</div>

haha

(but he does learn quick!)
