[Flash8] Changing colour of an object and easing

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?

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!

[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. :wink: