我做了一个Flash补间动画怎么能让鼠标放上去就停止!离开动画继续播放

我做了一个Flash补间动画怎么能让鼠标放上去就停止!离开动画继续播放。是图片循环滚动的flash然后,每张图片都加了链接,现在是想让鼠标悬停动画停止、点击图片弹出链接。但是现在要么能够停不能弹出网址,要么弹出网址鼠标悬停的时候动画不停。为什么呢?

用补间动画不行,需要用代码,如:
kk=mc6._x+mc6._width;
for (i=1; i<=6; i++) {//以6张图片为例,分别做在6个影片剪辑中,依次设置实例名称为mc1-mc6
_root["mc"+i].onEnterFrame = function() {//图片循环滚动
this._x -= 5;
if (this._x+this._width<=0) {
this._x = kk-this._width;
}
};
_root["mc"+i].onRollOver = function() {//鼠标指向停止滚动
for (j=1; j<=6; j++) {
delete _root["mc"+j].onEnterFrame;
}
};
_root["mc"+i].onRollOut = function() {//鼠标离开继续滚动
for (i=1; i<=6; i++) {
_root["mc"+i].onEnterFrame = function() {
this._x -= 5;
if (this._x+this._width<=0) {
this._x = kk-this._width;
}
};
}
};
}
mc1.onRelease=function(){
getURL("http://www.baidu.com","_blank");
}
mc2.onRelease=function(){
getURL("http://www.163.com","_blank");
}
//....后面4个链接你可以自己补齐
温馨提示:内容为网友见解,仅供参考
第1个回答  2011-10-19
需要写as程序。
as程序包括两种as2和as3.
如果你只做简单的控制用as2就足够了。
建议你把简单的命名学习release,gotoAndPlay(),stop()等。很容易的。

百度一下 upflash。专注flash培训
第2个回答  2011-10-17
这个得用脚本控制
相似回答