Skip to main content
Participant
June 23, 2006
Question

Alter Movieclip Color on mouseOver

  • June 23, 2006
  • 1 reply
  • 209 views
Hello,

Is there a (rather) simple way to change the color or highlight a movieclip (act the same as a button) on mouseOver? Perhaps even target the color of text inside a dynamic text box within a movieclip? I would like to try this without using an ebeded button, as I require the same (560) seperate clips without the rollover later.

Thanks
This topic has been closed for replies.

1 reply

Inspiring
June 23, 2006
U can use setRGB to setColor.
a sample code.

myButton_mc.onRollOver = function(){
var myVar:Color = new Color(this.base_mc);
myVar.setRGB(0xff0000);
}
myButton_mc.onRollOut = function(){
var myVar:Color = new Color(this.base_mc);
myVar.setRGB(0xffffff);
}

Here The "myButton_mc" is a movieClip...........
And the "base_mc" is a movieClip inside "myButton_mc". Color of the Base MovieClip will be changed when u tollover it. and gets plain white when u rollOut.