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

来源:百度知道 编辑:UC知道 时间:2024/05/22 13:13:27
谢谢各位了 谁能告诉我给谁追加积分100

把你的动画放到一个MC里面然后设置它的实例名,比如a_mc
然后在帧上面输入以下代码:

a_mc.onRollOver=function(){
this.stop()
}
a_mc.onRollOut=function(){
this.play()
}

就可以了~