flash 鼠标移动到影片剪辑时显示?

2024-11-20 07:06:50
推荐回答(4个)
回答1:

other_mc.visible=false
pic_mc.addEventListener(MouseEvent.MOUSE_OVER,showother)
pic_mc.addEventListener(MouseEvent.MOUSE_OUT,hideother)
function showother(e:MouseEvent){
other_mc.visible=true
}
function hideother(e:MouseEvent){
other_mc.visible=false
}

回答2:

在zzlasp的答案上面加上第一句

import flash.events.*;
other_mc.visible=false
pic_mc.addEventListener(MouseEvent.MOUSE_OVER,showother)
pic_mc.addEventListener(MouseEvent.MOUSE_OUT,hideother)
function showother(e:MouseEvent){
other_mc.visible=true
}
function hideother(e:MouseEvent){
other_mc.visible=false
}

回答3:

用flash的鼠标触发代码和动作都可以实现

回答4:

这个简单,直接贴代码:(假设你想移动的影片为
yp_mc)
yp_mc.usehandcursor
=
false;//鼠标形状为指针,true
鼠标为手形
yp_mc.onpress=function()
{
this.startdrag();
}
yp_mc.onrelease=function()
{
this.stopdrag();
}