1 Reply Latest reply on Dec 17, 2014 9:07 AM by kglad

    Flash CS3 Make a symbol change alpha on mouse scroll?

    doubleahsmse

      So i have been trying to change the alpha by scrolling but no clue what to do. I tried this code

       

      m2.addEventListener(MouseEvent.CHANGE, changeAlpha);

      function changeAlpha(e:Event):void {

      m2.alpha = m2.value/10;

      }

       

      and it works but it disappears fully and i cant scroll other way to bring it back. I know i need MOUSE_WHEEL but it just breaks the code