4 Replies Latest reply on Apr 1, 2007 5:44 AM by geoffthompson

    scripting a highlight of a graphic using onMouseOver

    geoffthompson Level 1
      Hi all,

      I'm new to AS and having some issues creating a highlight on a graphic separate from my button. On the stage is button (b1) and a graphic (image of a house). I would like the graphic's brightness to increase when the user mousesover and decreases when the users mousesoff. Can this be done in AS?

      The button script currently works like this:

      b1.onRollOver = over;
      b1.onRollOut = out;
      b1.onRelease = hit;

      function over () {
      function out () {
      function hit () {
      gotoAndPlay("Scene 2", 1);