Flash CS5 鼠标按钮经过时播放影片剪辑怎么写?(AS3)
展开全部
btn.addEventListener(MouseEvent.MOUSE_OVER, mouseHandle);
btn.addEventListener(MouseEvent.MOUSE_OUT, mouseHandle);
function mouseHandle(e:MouseEvent):void{
switch(e.type){
case MouseEvent.MOUSE_OVER:
mc.play();
break;
case MouseEvent.MOUSE_OUT:
mc.stop();
break;
}
}
btn.addEventListener(MouseEvent.MOUSE_OUT, mouseHandle);
function mouseHandle(e:MouseEvent):void{
switch(e.type){
case MouseEvent.MOUSE_OVER:
mc.play();
break;
case MouseEvent.MOUSE_OUT:
mc.stop();
break;
}
}
展开全部
button.addEventListener(MouseEvent.MOUSE_OVER,onMouseOver);
function onMouseOver (event:MouseEvent){
movieClip.play();
}
function onMouseOver (event:MouseEvent){
movieClip.play();
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询