Flash ActionScript制作超酷视觉效果动画_Flash教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

推荐:解决Fla文件编译SWF后体积过大
经常看到版面上有人问这个问题。想起我第一次碰到别人给我的源文件有这种情况时,也是很头疼,往往这些Fla文件中有着一大批动态文本框。整理了一下具体的解决

效果演示:

  具体代码:

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.
}

作者: 来源:deviantart.com

分享:Flash ActionScript制作真实的火焰
效果如下:点击这里下载源文件主要代码:importflash.display.*;importflash.filters.*;importflash.geom.*;importde.popforge.bitmap.Shape;Shape.s

来源:设计前沿收集整理//所属分类:Flash教程/更新时间:2008-03-05
相关Flash教程