达达首页 | 设计教程 | 辅助工具 | 字体字库 | 素材贴图 | 非 主 流 | PS 笔刷 | 签名模版 | 网页模版 | 达达贴吧
设为首页

加入收藏

联系我们
PhotoShop 教程 | Illustrator 教程 | CorelDraw 教程 | FireWorks 教程 | 3D MAX 教程 | MAYA 教程 | Flash 教程 | After Effects 教程
相关教程
普通教程 Flash声音控制教程
普通教程 利用FLASH脚本语言制…
普通教程 Flash电子书鼠标拖拽…
普通教程 纯脚本的鼠标跟随效…
普通教程 利用遮罩实现的红旗…
普通教程 Adobe flash cs3 Ac…
普通教程 FLASH的动态文本如何…
普通教程 Flash ActionScript…
普通教程 FLASH 实现动态模糊…
普通教程 最常用的Flash语句
最新更新

Adobe flash cs3 …

FLASH的动态文本如…

由浅入深学习Flas…

用Flash AS三行代…
您现在的位置: 达达派 >> 教程中心 >> FLASH教程 >> 代码篇 >> 教程正文
Flash ActionScript制作超酷视觉效果动画
作者:未知 文章来源:网络采集 点击数: 更新时间:2006-7-18 13:33:42
教程录入:carcass    责任编辑:carcass  添加到雅虎收藏+
效果演示:

  具体代码:

onClipEvent (load) {
x=0 //where the dot is
y=0 //where the dot is
xmove=0 //it's movement
ymove=0 //it's movement
}
onClipEvent (enterFrame) {
xmove+= (_root._xmouse-_x-x)/10 //math
ymove+= (_root._ymouse-_y-y)/10 //math
x+=xmove+(_root._xmouse-_x-x)/10 //math
y+=ymove+(_root._ymouse-_y-y)/10 //math
clear()
lineStyle(1,000000,100)
moveTo(oldx,oldy)
lineTo(x,y)
oldx=x //this is so that in the next frame it knows where the dot was last frame
oldy=y //this is so that in the next frame it knows where the dot was last frame
_rotation-- //This is negative on two of the movieclips (that initially have an opposite rotation to eachother), 
and positive on the other two.
}

  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    关于我们 | 帮助(?) | 广告服务 | 版权声明 | 商业合作 | 发展历程 | 联系我们

    Copyright ? 2005-2008 CGFancy.com, All Rights Reserved,达达网络:陕ICP备06010337号

    技术交流:71125455(平面)、545534707(三维),业务合作:71125455