# Simple Scripted MC Movement/Easing

**URL:** <https://forum.kirupa.com/t/simple-scripted-mc-movement-easing/37480>\
**Category:** Uncategorized\
**Created:** [December 10, 2003, 7:00pm UTC](https://forum.kirupa.com/t/simple-scripted-mc-movement-easing/37480 "2003-12-10T19:00:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![newhopekenny](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/newhopekenny/32/317_2.png) [@newhopekenny](https://forum.kirupa.com/u/newhopekenny)\
**Post date:** [December 10, 2003, 7:00pm UTC](https://forum.kirupa.com/t/simple-scripted-mc-movement-easing/37480/1 "2003-12-10T19:00:19Z")

</div>

Okay, I quit. I’ve tried incrementing \_x, startDrag’s with easing…nothing. Anyone that can help explain how to code the little red bar for the navigation on this site ( [http://www.brandnewrock.com/index.php](http://www.brandnewrock.com/index.php) ) will become my hero.

I’m kind of new, kind of not new…which is why I feel like an \*\*\* posting this question, because I SHOULD KNOW 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:** [March 12, 2004, 11:14pm UTC](https://forum.kirupa.com/t/simple-scripted-mc-movement-easing/37480/2 "2004-03-12T23:14:37Z")

</div>

mmm…

Do you think you could post the fla of this?

I am trying to figure out how to implement the code you posted… 😛

It’s such a task to decrypt AS.

---

<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:** [March 13, 2004, 4:12am UTC](https://forum.kirupa.com/t/simple-scripted-mc-movement-easing/37480/3 "2004-03-13T04:12:32Z")

</div>

Well…no. Takes too much time to compile an FLA from this. You can see what it does here: [emptyproductions.com/new](http://emptyproductions.com/new)

Basically, you have a buttons that – when moused over – instructs the barMC (“underline” as it’s called above) to move underneath the proper MC, adjusting it’s width to fit the width of the button it’s under and easing into place using a custom method.

Once one/all/any of the links are moused over and the mouse is no longer over any of the MCs, then a setInterval is called that eases the underline back offscreen after a set amount of time.

The if/then function is to determine whether the mouse is over the links or not.

The setInterval eases the underline out of view and is called when the mouse is no longer over any of the navigation MCs.

I’ll try to post an FLA later tonight, I guess. Hope this explanation helps a bit.

---

<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:** [March 13, 2004, 4:38am UTC](https://forum.kirupa.com/t/simple-scripted-mc-movement-easing/37480/4 "2004-03-13T04:38:24Z")

</div>

Okay, I built a sample FLA using the above code, and compiled a SWF demo. You can download the FLA and view the demo at:  
[www.emptyproductions.com/kirupa/easingUnderline](http://www.emptyproductions.com/kirupa/easingUnderline)

Hope this all helps, and I’d love to see what you do with the code!

---

<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:** [March 13, 2004, 5:13am UTC](https://forum.kirupa.com/t/simple-scripted-mc-movement-easing/37480/5 "2004-03-13T05:13:56Z")

</div>

Wow… Thanks!

I am going to have a go and see if I can make a menu system out of this… Thanks. 🙂

---

<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:** [March 13, 2004, 5:14am UTC](https://forum.kirupa.com/t/simple-scripted-mc-movement-easing/37480/6 "2004-03-13T05:14:35Z")

</div>

Ah… that FLA is corrupt reading as an “Unexpected file error” ☹

---

<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:** [March 13, 2004, 5:21am UTC](https://forum.kirupa.com/t/simple-scripted-mc-movement-easing/37480/7 "2004-03-13T05:21:40Z")

</div>

Must be a mx04 file, it opened fine for me. I saved as mx, try this one.

Adam

---

<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:** [March 13, 2004, 9:58am UTC](https://forum.kirupa.com/t/simple-scripted-mc-movement-easing/37480/8 "2004-03-13T09:58:34Z")

</div>

No way… thanks Adam14… this is major for me

🙂  
I will begin learning all the pieces to it.
