源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

做了个flash对mc移动的控制,代码很简单:)

  • 时间:2021-05-10 22:54 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:做了个flash对mc移动的控制,代码很简单:)
[u]复制代码[/u] 代码如下:
里面创建了4个MC,分别是zzcn_top_mc zzcn_end_mc zzcn_left_mc zzcn_right_mc . 很简单的。。大家可以参考下哦。。呵呵。。 var place_x:Number = _xmouse; var place_y:Number = _ymouse; var sulv:Number = 6; zzcn_top_mc.onEnterFrame = function(){     this._x += (place_x - this._x)/sulv;     place_x = _xmouse;     }; zzcn_end_mc.onEnterFrame = function(){     this._x += (place_x - this._x)/sulv;     place_x = _xmouse;     }; zzcn_left_mc.onEnterFrame = function(){     this._y += (place_y - this._y)/sulv;     place_y = _ymouse;     }; zzcn_right_mc.onEnterFrame = function(){     this._y += (place_y - this._y)/sulv;     place_y = _ymouse;     };
http://www.zzcn.net/blog/attachments/month_0612/l2006121018639.swf
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部