1 Reply Latest reply on Dec 18, 2007 2:15 PM by thebudman_1980

    Button Problem : PLEASE HELP

    keith23x Level 1
      This question probably has a fairly simple solution but everything I've tried doesn't seem to work CORRECTLY. I am trying to have an actual button shape with the name of the button in text above the button shape. As the user rolls over the button I want both the text and the button to change color. As of now only the text changes color I created a movieclip called mc. about us inside the movieclip is Dynamic Text that I named Text Label. I placed the movieClip on the main stage and gave it an instance name of MM_aboutUs and everything worked well with THE TEXT, as far as rollover,rollout, and onRelease. Inside the same movieclip as the text is a movieClip called radioButton with an instance name of mcRadioButton. I want the button shape to change colors along with the text. This is the code I have used so far that changes the text color onRollOver onRollOut & onRelease. I want the button shape underneath the text to change along with it......but How?? This is the code I have so far.....:

      //-----------------------<define option colors>---------------------\\
      var overColor:Number = 0x7DBC6B;
      var outColor:Number = 0x000000;

      function changeOptionColor(myOption:MovieClip, myColor:Number) {
      myOption.textLabel.textColor = myColor;
      //myOption.MM_aboutUs.mcRadioButton.setRGB = myColor;

      //----------------<re-enable menu options>-----------------\\
      function reActivateBtns() {
      MM_aboutUs.enabled = true;
      changeOptionColor(MM_aboutUs, outColor);
      //----------------<re-enable menu options>-----------------\\
      //----------------<about us option>-----------------\\
      MM_aboutUs.onRollOver = function () {
      changeOptionColor(this, overColor);

      MM_aboutUs.onRollOut = function () {
      changeOptionColor(this, outColor);

      MM_aboutUs.onRelease = function () {
      changeOptionColor(this, overColor);
      this.enabled = false;
      _level0.myMCL.loadClip("about_us.swf", 5);
      //----------------</about us option>-----------------\\