# \[Flash8\] Changing colour of an object and easing

**URL:** https://forum.kirupa.com/t/flash8-changing-colour-of-an-object-and-easing/263977
**Category:** flash
**Created:** [June 21, 2008, 8:34am UTC](https://forum.kirupa.com/t/flash8-changing-colour-of-an-object-and-easing/263977 "2008-06-21T08:34:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![atomo](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@atomo](https://forum.kirupa.com/u/atomo)
#### Post date: [June 21, 2008, 8:34am UTC](https://forum.kirupa.com/t/flash8-changing-colour-of-an-object-and-easing/263977/1 "2008-06-21T08:34:15Z")

</div>

Hi Kirupa forum peoples

Im designing a simple menu. As the user roll overs a word, a simple bar slides under the word. I have that working fine, however I want to add a simple piece of complexity in that as it sliders under the word, the bar changes colour.

[COLOR=Navy]on (rollOver) {  
// slider - Movie Clip’s Instance Name. button\_1 - Button’s Instance Name.  
slider.xMove = button\_who.\_x;  
{  
var colorful = new Color("\_root.slider\_mc");  
colorful.setRGB(0xFF0099);  
}  
} [/COLOR]

It continues to slide under the word, but it stays the same colour.

Any clues?

---

<div class="post-metadata">

### Author: ![Illustratr](https://avatars.discourse-cdn.com/v4/letter/i/b77776/32.png) [@Illustratr](https://forum.kirupa.com/u/Illustratr)
#### Post date: [June 21, 2008, 9:30am UTC](https://forum.kirupa.com/t/flash8-changing-colour-of-an-object-and-easing/263977/2 "2008-06-21T09:30:16Z")

</div>

Are you referring to slider and slider\_mc as the same thing and having a slight typo there or are those meant to be two different instance names?

---

<div class="post-metadata">

### Author: ![atomo](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@atomo](https://forum.kirupa.com/u/atomo)
#### Post date: [June 21, 2008, 9:43am UTC](https://forum.kirupa.com/t/flash8-changing-colour-of-an-object-and-easing/263977/3 "2008-06-21T09:43:42Z")

</div>

> [@Illustratr;2346756](#):
>
> Are you referring to slider and slider\_mc as the same thing and having a slight typo there or are those meant to be two different instance names?

Ugggggh that’s it! Blah, so simple!

Thanks man, so much. It’s working perfectly now!

---

<div class="post-metadata">

### Author: ![Illustratr](https://avatars.discourse-cdn.com/v4/letter/i/b77776/32.png) [@Illustratr](https://forum.kirupa.com/u/Illustratr)
#### Post date: [June 21, 2008, 9:49am UTC](https://forum.kirupa.com/t/flash8-changing-colour-of-an-object-and-easing/263977/4 "2008-06-21T09:49:56Z")

</div>

[QUOTE=atomo;2346757]Ugggggh that’s it! Blah, so simple!

Thanks man, so much. It’s working perfectly now![/QUOTE]

Glad it was an easy fix. 😉
