Flash ActionScript制作超酷視覺效果動(dòng)畫_Flash教程
推薦:解決Fla文件編譯SWF后體積過大經(jīng)常看到版面上有人問這個(gè)問題。想起我第一次碰到別人給我的源文件有這種情況時(shí),也是很頭疼,往往這些Fla文件中有著一大批動(dòng)態(tài)文本框。整理了一下具體的解決
效果演示:
具體代碼:
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制作真實(shí)的火焰效果如下:點(diǎn)擊這里下載源文件主要代碼:importflash.display.*;importflash.filters.*;importflash.geom.*;importde.popforge.bitmap.Shape;Shape.s
Flash教程Rss訂閱網(wǎng)站制作教程搜索
Flash教程推薦
猜你也喜歡看這些
- Flash 8經(jīng)典動(dòng)畫設(shè)計(jì)實(shí)錄
- FIF小組FLASH MX 2004實(shí)例視頻教程
- Flash CS4視頻教程中文版
- Flash 8完美動(dòng)畫設(shè)計(jì)與制作
- Flash 8 入門與提高實(shí)例教程
- FIF小組Flash MX 2004視頻教程超速入門
- Flash 8中文版MV及課件制作基礎(chǔ)培訓(xùn)百例
- Authorware 7.0 Flash MX 2004多媒體創(chuàng)作實(shí)例導(dǎo)學(xué)
- 金鷹Flash ActionScript編程視頻教程 swf
- 金鷹FLASH CS3活學(xué)活用
- 相關(guān)鏈接:
- 教程說明:
Flash教程-Flash ActionScript制作超酷視覺效果動(dòng)畫
。