效果如下:
新建文档,按Ctrl+J修改属性:

自己随意设置一个背景,然后使用椭圆工具绘制一个只有边框色没有填充色的圆:

然后选中圆按F8转变为影片剪辑元件,在属性面板上命名实例名circle:


然后添加一层,选择第1帧按F9输入如下指令:
_root.onEnterFrame = function(){
positionX = _root._xmouse - 55;
positionY = _root._ymouse - 50;
circle._x = circle._x + (positionX - circle._x)/15
circle._y = circle._y + (positionY - circle._y)/15
}
最后我们为了让圆的动画效果更好,我们可以编辑circle影片剪辑元件,我这个实例做的是圆的形状变形动画。
然后可以按Ctrl+Enter测试影片了!
| 关于腾讯 | About Tencent | 服务条款 | 广告服务 | 腾讯招聘 | 腾讯公益 | 客服中心 | 网站导航 | |
| Copyright © 1998 - 2008 Tencent Inc. All Rights Reserved | ![]() |
| 腾讯公司 版权所有 | |