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
}
在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
}
用flash的鼠标触发代码和动作都可以实现
这个简单,直接贴代码:(假设你想移动的影片为
yp_mc)
yp_mc.usehandcursor
=
false;//鼠标形状为指针,true
鼠标为手形
yp_mc.onpress=function()
{
this.startdrag();
}
yp_mc.onrelease=function()
{
this.stopdrag();
}