///pc/img/blank.gif" width="12" height="8">当前位置:///default.htm" class="under">亿度网络 -> ///pc/index.htm" class="under">网页制作教程 -> Flash实例


/pc/bin/msg.pl?file_id=k_flashjq3 target="_blank">///pc/img/message.gif" width="64" height="54" alt="请您留言" border="0">
谈谈您的看法

///pc/img/blank.gif" width="1" height="1">
3.动感球体

预览成品:

///pc/homepage/flashsl/flash03/swf/03.zip">下载源程序

逐步说明:
  1)选择菜单File
->New,创建一个新电影。

///pc/homepage/flashsl/flash03/img/flashnew.gif" width="233" height="67" alt="新建" border="0">

  2)选择菜单Modify->Movie,弹出电影属性设置对话框,分别在Width和Height域中输入:150px。在Background域中选择如图所示的背景颜色。点击OK按钮,关闭属性设置对话框。

///pc/homepage/flashsl/flash03/img/flash001.gif" width="344" height="194" alt="电影属性" border="0">

  3)选择工具栏中的画圆工具///pc/homepage/flashsl/flash03/img/flash002.gif" width="25" height="23" align="absmiddle" alt="画圆工具" border="0">,单击参数栏中的边框颜色按钮///pc/homepage/flashsl/flash03/img/flash003.gif" width="22" height="22" align="absmiddle" alt="颜色按钮" border="0">,在弹出的菜单中选择左上角的黑框///pc/homepage/flashsl/flash03/img/flash004.gif" width="19" height="19" align="absmiddle" alt="无线条按钮" border="0">,即把线框设置成无线条。
  4)按住Shift键,在工作区中按下并拖动鼠标,画出一个圆。

///pc/homepage/flashsl/flash03/img/flash005.gif" width="316" height="153" alt="画出的圆" border="0">

选择工具栏中的油漆桶工具///pc/homepage/flashsl/flash03/img/flashyq.gif" width="23" height="22" align="absmiddle" alt="油漆桶" border="0">,点击参数栏中的填充颜色按钮///pc/homepage/flashsl/flash03/img/flashtxts.gif" width="24" height="22" align="absmiddle" alt="填充颜色按钮" border="0">,在弹出的下拉菜单中选择自定义颜色按钮///pc/homepage/flashsl/flash03/img/flashzdy.gif" width="26" height="24" align="absmiddle" alt="自定义颜色按钮" border="0">,选择Gidient选项卡,点击第二个颜色渐变,单击第一个颜色箭头,改变它的RGB值为(153,204,204)。

///pc/homepage/flashsl/flash03/img/flash006.jpg" width="330" height="170" alt="自定义颜色对话框" border="0">

用鼠标左键单击圆形图片的左上角,点击后的图形如图所示。

///pc/homepage/flashsl/flash03/img/flash006.gif" width="304" height="151" alt="填充所选颜色的圆" border="0">

  5)用鼠标右键单击图层Layer1的第15帧,在弹出的菜单中选择Insert Keyframe项,即在图层Layer1的第15帧处插入一个关键帧。

///pc/homepage/flashsl/flash03/img/flash007.gif" width="180" height="121" alt="插入关键帧" border="0">

  6)选中工具栏中的油漆桶工具按钮///pc/homepage/flashsl/flash03/img/flash008.gif" width="23" height="21" align="absmiddle" alt="油漆桶" border="0">,用鼠标左键单击圆形图片的右下角。单击后的图形如图所示。///pc/homepage/flashsl/flash03/img/flash009.gif" width="88" height="88" align="absmiddle" alt="圆形图片" border="0">


  7)用鼠标右键点击图层Layer1的第1帧,在弹出的菜单中选择Properties项,

///pc/homepage/flashsl/flash03/img/flash010.gif" width="252" height="95" alt="帧属性菜单" border="0">

这时弹出帧属性对话框,切换到Tweening选项卡,在Tweening域中选择Shape项,点击OK按钮,关闭属性对话框。

///pc/homepage/flashsl/flash03/img/flash011.gif" width="382" height="170" alt="帧属性对话框" border="0">  ///pc/homepage/flashsl/flash03/img/flash012.gif" width="152" height="46" align="absmiddle" alt="已建立的渐变路径" border="0">

  8)用鼠标右键点击图层Layer1的第1帧,在弹出的菜单中选择Copy Frames项,复制第1帧。

         ///pc/homepage/flashsl/flash03/img/flash013.gif" width="108" height="173" alt="复制帧" border="0">     ///pc/homepage/flashsl/flash03/img/flash014.gif" width="108" height="179" alt="粘贴帧" border="0">

再用鼠标右键点击图层Layer1的第30帧,在弹出的菜单中选择Paste Frames项,粘贴刚复制的帧。
  9)用步骤7中的方法建立程序如图所示。

///pc/homepage/flashsl/flash03/img/flash015.gif" width="270" height="61" alt="完整的程序" border="0">

  10)选择菜单Control->Test Movie即可看到动感球体的效果。

///pc/homepage/flashsl/flash03/img/flash016.gif" width="99" height="99" alt="测试电影" border="0">


上一实例(线框文字的制作)  下一实例(电影文字的制作)

/pc/bin/msg.pl?file_id=k_flashjq3 target="_blank">///pc/img/message.gif" width="64" height="54" alt="请您留言" border="0">
谈谈您的看法

 

网页制作 网页设计 网站建设 网站设计 网站制作 做网站 做网页