玉儿abc 发表于 2014-6-25 16:42

flash制作水波美女

本帖最后由 玉儿abc 于 2014-6-25 21:26 编辑 <br /><br /><TABLE id=table1 style="LEFT: -180px; WIDTH: 1255px; POSITION: relative; TOP: 0px" cellSpacing=1 align=center background=0 border=0>
<TBODY>
<TR>
<P align=center>
<P><EMBED style="VideoAttribute: 2000" src=http://365up.aliapp.com/data/attachment/dzz/201406/25/161028wj4effk4e2kqqew2.swf width=1000 height=550 type=application/x-shockwave-flash allow.access="always" allownetworking="all">
<P></P>
<P></P>
<P style="WORD-SPACING: 0px; FONT: 15px/22px 宋体; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(245,245,245); orphans: 2; widows: 2; webkit-text-stroke-width: 0px" align=left><FONT color=#000000 size=4><STRONG>1、打开FLASH,建立一个文件,文件大小依图片尺寸,自定背景颜色。</STRONG></FONT></P>
<P style="WORD-SPACING: 0px; FONT: 15px/22px 宋体; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(245,245,245); orphans: 2; widows: 2; webkit-text-stroke-width: 0px" align=left><FONT color=#000000 size=4><STRONG>2、文件→导入→导入到舞台,将事先准备好的图片导入到舞台。</STRONG></FONT></P>
<P style="WORD-SPACING: 0px; FONT: 15px/22px 宋体; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(245,245,245); orphans: 2; widows: 2; webkit-text-stroke-width: 0px" align=left><FONT color=#000000 size=4><STRONG>3、将图片大小适当调整一下,垂直、水平居中。如果图片与文件设置一致就不用调了。</STRONG></FONT></P>
<P style="WORD-SPACING: 0px; FONT: 15px/22px 宋体; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(245,245,245); orphans: 2; widows: 2; webkit-text-stroke-width: 0px" align=left><FONT color=#000000 size=4><STRONG>4、右键舞台中图片→转换为元件。在出现对话框中点选影片剪辑→确定。</STRONG></FONT></P>
<P style="WORD-SPACING: 0px; FONT: 15px/22px 宋体; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(245,245,245); orphans: 2; widows: 2; webkit-text-stroke-width: 0px" align=left><FONT color=#000000 size=4><STRONG>5、选中图片,打开属性面板,添加实例名“cd”。这一步很重要!</STRONG></FONT></P>
<P style="WORD-SPACING: 0px; FONT: 15px/22px 宋体; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(245,245,245); orphans: 2; widows: 2; webkit-text-stroke-width: 0px" align=left><FONT color=#000000 size=4><STRONG>6、添加一个图层,改名AS</STRONG></FONT></P>
<P style="WORD-SPACING: 0px; FONT: 15px/22px 宋体; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(245,245,245); orphans: 2; widows: 2; webkit-text-stroke-width: 0px" align=left><FONT color=#000000 size=4><STRONG>7、选中AS图层的第1帧,右键→打开动作面板。</STRONG></FONT></P>
<P style="WORD-SPACING: 0px; FONT: 15px/22px 宋体; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(245,245,245); orphans: 2; widows: 2; webkit-text-stroke-width: 0px" align=left><STRONG><FONT size=5>Stage.scaleMode = "noScale"; var baseX = 100; var baseY = 100; var nOctaves = 1; var randomSeed = Math.random() * 10; var bStitch = false; var bFractalNoise = true; var nChannels = 1; var bGreyScale = false; var p1 = new flash.geom.Point(45, 34); var p2 = new flash.geom.Point(50, 60); perlinOffset = new Array(p1, p2); bmp = new flash.display.BitmapData(<FONT color=#ff0000>750</FONT>,<SPAN class=Apple-converted-space>&nbsp;</SPAN><FONT color=#ff0000>500</FONT>, true, 0); onEnterFrame = function () { perlinOffset.y = perlinOffset.y - 8; perlinOffset.x = perlinOffset.x - 8; perlinOffset.x = perlinOffset.x + 1; perlinOffset.y = perlinOffset.y + 1; bmp.perlinNoise(baseX, baseY, nOctaves, randomSeed, bStitch, bFractalNoise, nChannels, bGreyScale, perlinOffset); dmf = new flash.filters.DisplacementMapFilter(bmp, new FLASH.geom.Point(0, 0), 1, 1, 20, 20, "color"); cd.filters = ; };</FONT></STRONG></P>
<P style="WORD-SPACING: 0px; FONT: 15px/22px 宋体; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(245,245,245); orphans: 2; widows: 2; webkit-text-stroke-width: 0px" align=left><FONT color=#000000 size=4><STRONG>8、复制如下语句:<SPAN class=Apple-converted-space>&nbsp;</SPAN></STRONG></FONT></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P align=left></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P></P></TR></TBODY></TABLE>

白雪皑皑 发表于 2014-6-26 09:01

{:soso_e163:}玉儿辛苦了,谢谢你的分享

一抹海蓝 发表于 2014-6-26 11:09

感谢玉儿的分享
页: [1]
查看完整版本: flash制作水波美女