将img1 和 img2分别建成两个MovieClip,命名为mc1和mc2,并讲mc1和mc2拖到舞台上放在同一坐标,在属性面板添加实例名,mc1,mc2,mc2放在mc1的下面,在时间轴上添加下面代码
mc1.alpha=1;
mc1.addEventListener(MouseEvent.MOUSE_OVER,onOver);
mc1.addEventListener(MouseEvent.MOUSE_OUT,onOut);
function onOver(e:MouseEvent):void{
mc1.alpha=0;
}
function onOut(e:MouseEvent):void{
mc1.alpha=1;
}
问题解决啦?