请问Flash怎么制作图形跟着鼠标动

来源:百度知道 编辑:UC知道 时间:2024/05/02 10:41:29
如题 详细点...

方法一:
代码写在场景时间轴上,mc为场景内的元件
_root.onEnterFrame=function(){
mc._x=_xmouse;
mc._y=_ymouse;
}

方法二:
代码写在元件mc里,mc为场景内的元件
onClipEvent(enterFrame){
this._x=_root._xmouse;
this._y=_root._ymouse;
}

用路径动画

用路径动画 来做,找到他来一步步做就OK啦·

startDrag();