首 页 编程技术 网页设计 软件频道 系统维护 网络安全 范文大全 站长专区
首 页 编程技术 网页设计 软件频道 系统维护 网络安全 范文大全 站长专区
设为首页
加入收藏
联系我们
首 页 | ASP技术 | PHP技术 | NET技术 | JSP技术 | AJAX | C++ | JavaScript | HTML | | 布局配色 | MSSQL | MySQL | Access
DreamWeaver | FrontPage | Flash | PhotoShop | Firework | CorelDraw | 操作系统 | 办公软件 | 网络营销 | 搜索引擎 | 站长专区 | 服务器 | 范文大全 | 安全
超酷的 action script 视觉效果代码
发布日期:[08-03-20 11:48:48] 点击次数:[]
效果很玄flash action script,代码却很简单。

大致代码如下:

以下是引用片段:
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.
}

效果预览

上一篇:
下一篇:

热点文章

· 鼠年知运 2008年编程语言运势抢先
· Windows Server 2008新功能影响应
· 程序员的处世哲学:好酒不怕巷子
· 使用AJAX技术构建更优秀的Web应用
· 你的网站为什么粘不住流量? 
· SCA,软件开发的3G时代
· 浅谈网上教学的实践与探索
· 论IP电话在我国的发展
· 2008年最热门的七大IT软件技能
· 教你四招--轻松让你成为Excel函数
· WIN2000 SERVER安全配置服务器手
· WIN2000 SERVER安全配置服务器手
· Fireworks 8 混合模式详解2
· 浅谈网上教学的实践与探索
· 完整的Windows 2000服务配置

搜索引擎

网站留言 | 友情连接 | 广告服务 | 版权申明 | 合作伙伴 | 法律声明 | 人员招聘 | 网站简介 | 联系我们 | About Us
站内所有资源均收集于互联网,其版权属原作者所有。 E吧-中国IT门户欢迎你的光临!
赣ICP备07501208号