I'm a total newb to flash, I am using ActionScript 3.0 and all I'm trying to do is when the mouse rolls over a button it changes the alpha value to 50%.
Here's the code I'm using:
function onRollovr(evt:MouseEvent):void {
this.alpha = 50;
}
img1_btn.addEventListener(MouseEvent.ROLL_OVER,onRollovr);
Besides using the this.alpha approach, I've also tried _alpha and alpha which doesn't work either.
Any suggestions?
Here's the code I'm using:
function onRollovr(evt:MouseEvent):void {
this.alpha = 50;
}
img1_btn.addEventListener(MouseEvent.ROLL_OVER,onRollovr);
Besides using the this.alpha approach, I've also tried _alpha and alpha which doesn't work either.
Any suggestions?