FLASH遮罩到一半怎么让它原路返回

来源:百度知道 编辑:UC知道 时间:2024/07/07 11:00:55
http://www.verawangonweddings.com/shop/Shop.aspx
右边这样的一个效果 ,想用FLASH来做。。。开始鼠标经过时。图片展开。鼠标移开就关闭。想用flash来实现。
请问怎么做才能实现。。
谢谢各位大大。。。

//声明l等于所在场景帧。
var l = this;
//场景内有4个分别为menu1、menu2...影片剪辑。
//每个影片剪辑内第一帧是初始状态,加stop();命令,到最后一帧做经过状态,之间做动画补间。
for (var j = 1; j<4; j++) {
_mc = this["menu"+j];
_mc.no = j;
//每个影片剪辑内都有一个名为area的鼠标事件透明按钮。
_mc.area.onRollOver = function() {
//鼠标经过,openNum等于按钮所在影片剪辑的no
openNum = this._parent.no;
//鼠标经过,按钮所在影片剪辑移至最高层级。
mx.behaviors.DepthControl.bringToFront(this._parent);
};
_mc.area.onRollOut = function() {
//trace(openNum);
openNum = undefined;
};
_mc.area.onRelease = function() {
openNum = this._parent.no;
};
_mc.onEnterFrame = function() {
//根据openNum值判断是哪个影片剪辑播放到最后一帧。
if (openNum == this.no) {
if (this._currentframe != this._totalframes) {
this.nextFrame();
}
} else {
if (this._currentframe != 1) {
this.prevFrame();
}
}
};
}