# A question about easing

**URL:** <https://forum.kirupa.com/t/a-question-about-easing/9618>\
**Category:** Uncategorized\
**Created:** [December 15, 2002, 8:09am UTC](https://forum.kirupa.com/t/a-question-about-easing/9618 "2002-12-15T08:09:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theta](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@Theta](https://forum.kirupa.com/u/Theta)\
**Post date:** [December 15, 2002, 8:09am UTC](https://forum.kirupa.com/t/a-question-about-easing/9618/1 "2002-12-15T08:09:31Z")

</div>

Hi! This is my first post on these forums, but I’ve been reading through the many helpful threads for a while now, and I’ve learned so much! Thanks to all that contribute! You have no idea how much it’s helped out this Flash n00b. 🙂

Anyway, to my problem… I’ve been working on a project using the tutorial on mouse follow with easing by Losinbeta. I understood it, and what I’ve done so far works great. (Thanx Lost! Great tutorial!) What I want to do now is make it so my movie clip stops following the mouse once it reaches a certain point along the x axis. Can anyone help me out with this? Any help at all would be appreciated. Thanx!

Theta

---

<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:** [December 15, 2002, 8:16am UTC](https://forum.kirupa.com/t/a-question-about-easing/9618/2 "2002-12-15T08:16:22Z")

</div>

No problem Theta 🙂

You can just use an if statement on the onClipEvent(enterFrame) of the movie clip.

Something like this…

```auto
if (this._x >= 100) {
this._x = 100;
}

```

---

<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:** [December 15, 2002, 8:19am UTC](https://forum.kirupa.com/t/a-question-about-easing/9618/3 "2002-12-15T08:19:00Z")

</div>

Thanx a bunch. 🙂 I’ll give it a go and see what I make of it.

Theta

---

<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:** [December 15, 2002, 8:21am UTC](https://forum.kirupa.com/t/a-question-about-easing/9618/4 "2002-12-15T08:21:20Z")

</div>

Let me know how it goes 😉

---

<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:** [December 15, 2002, 8:40am UTC](https://forum.kirupa.com/t/a-question-about-easing/9618/5 "2002-12-15T08:40:45Z")

</div>

It worked great! Just what I was looking for. Thanx again!🙂

Theta

---

<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:** [December 15, 2002, 8:43am UTC](https://forum.kirupa.com/t/a-question-about-easing/9618/6 "2002-12-15T08:43:04Z")

</div>

No Problem 😉 🙂

BTW: Welcome to kirupa forum, I hope you enjoy it here 🙂
