Flash ActionScript制作超酷视觉效果动画_Flash教程
推荐:解决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.
}
分享:Flash ActionScript制作真实的火焰效果如下:点击这里下载源文件主要代码:importflash.display.*;importflash.filters.*;importflash.geom.*;importde.popforge.bitmap.Shape;Shape.s
- 相关链接:
- 教程说明:
Flash教程-Flash ActionScript制作超酷视觉效果动画。