1 Reply Latest reply on Jun 23, 2006 4:28 AM by Devendran

    Alter Movieclip Color on mouseOver

    MacJr Level 1
      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
        • 1. Re: Alter Movieclip Color on mouseOver
          Devendran Level 1
          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.