5 Replies Latest reply on Feb 9, 2009 12:19 PM by Ned Murphy

    onRollOver / onRelease

    rodjsr

      I guess the easiest way to explain what I want to do is by showing you what I've done so far: here

      Three things happen on this:
      -when you rollover the thumbnails the "experience" that it relates to lights up at the bottom.
      -when you click on an "experience" the thumbnails that have that experience light up.
      -when you hit "reset" no thumbnails are selected.

      My problem occurs when you choose an "experience" (and selected thumbnails light up and others are disabled).
      If you RollOver the selected thumbnails that correspond to that "experience" they return to their original state (i.e., alpha=40).
      I want them to stay on alpha=100 until the user presses another "experience" or hits "reset."

      My code is really long (not great at Flash, so not sure if it could be shorter), but the same for each category of buttons.

      Here's an example for one of the "experience" buttons:

      interact_btn.onRelease = function(){
      read_btn._alpha = 40;
      see_btn._alpha = 40;
      watch_btn._alpha = 40;
      listen_btn._alpha = 40;
      interact_btn._alpha = 100;
      r1_btn._alpha = 40;
      r2_btn._alpha = 40;
      r3_btn._alpha = 40;
      r4_btn._alpha = 40;
      s1_btn._alpha = 40;
      s2_btn._alpha = 40;
      w1_btn._alpha = 40;
      w2_btn._alpha = 40;
      w3_btn._alpha = 40;
      w4_btn._alpha = 40;
      l1_btn._alpha = 40;
      l2_btn._alpha = 40;
      i1_btn._alpha = 100;
      i2_btn._alpha = 100;
      i3_btn._alpha = 100;
      i4_btn._alpha = 100;
      r1_btn.enabled = false;
      r2_btn.enabled = false;
      r3_btn.enabled = false;
      r4_btn.enabled = false;
      s1_btn.enabled = false;
      s2_btn.enabled = false;
      w1_btn.enabled = false;
      w2_btn.enabled = false;
      w3_btn.enabled = false;
      w4_btn.enabled = false;
      l1_btn.enabled = false;
      l2_btn.enabled = false;
      i1_btn.enabled = true;
      i2_btn.enabled = true;
      i3_btn.enabled = true;
      i4_btn.enabled = true;
      }

      Here's an example for one of the thumbnails:

      r1_btn.onRollOver = function(){
      this._alpha = 100;
      read_btn._alpha = 100;
      }
      r1_btn.onRollOut = function(){
      this._alpha = 40;
      read_btn._alpha = 40;
      }


      Thanks for your help.