///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_flashjq7 traget="_black">///pc/img/message.gif" width="64" height="54" alt="请您留言" border="0">
谈谈您的看法

///pc/img/blank.gif" width="1" height="1">
7.变幻的五角星之二

  8)选中五角星图片,

///pc/homepage/flashsl/flash07/img/flash18.gif" width="107" height="74" alt="选中的五角星">

选择菜单Insert->Convert to Symbol,///pc/homepage/flashsl/flash07/img/flash19.gif" width="134" height="41" align="absmiddle" alt="转换图符组件菜单">在弹出的属性对话框中输入名称star,点击OK按钮,关闭对话框。

///pc/homepage/flashsl/flash07/img/flash20.gif" width="250" height="119" alt="转换图符属性对话框">

  9)下面制作五角星的一系列变化,选中图层的第1帧,在变形监控板的Scale栏中输入数值15,

///pc/homepage/flashsl/flash07/img/flash21.gif" width="194" height="182" alt="监控板">

点击Apply按钮,这时五角星将变成原来大小的15%。用箭头工具将它挪动到工作区外侧。

///pc/homepage/flashsl/flash07/img/flash22.gif" width="279" height="73" alt="五角星初始位置">

用鼠标右键单击图层的第30帧,在弹出的菜单中选择Insert Keyframe,在第30帧插入一个关键帧。

///pc/homepage/flashsl/flash07/img/flash23.gif" width="139" height="156" alt="插入关键帧">

在监控板的Scale栏中输入数值50,这时五角星将变成初始大小的50%。

///pc/homepage/flashsl/flash07/img/flash24.gif" width="193" height="192" alt="监控板">

用箭头工具将它挪动到工作区的左侧。再用鼠标右键单击第1帧,在弹出的菜单中选择Create Motion Tween。
   
///pc/homepage/flashsl/flash07/img/flash25.gif" width="151" height="50">   ///pc/homepage/flashsl/flash07/img/flash26.gif" width="252" height="47" alt="建立运动路径">

  10)用鼠标右键单击图层的第45帧,从弹出的菜单中选择Insert Keyframe,将第45帧变为关键帧。///pc/homepage/flashsl/flash07/img/flash27.gif" width="165" height="48" align="absmiddle" alt="在45帧处插入关键帧">

 

在监控板的Scale栏中输入数值100,

///pc/homepage/flashsl/flash07/img/flash28.gif" width="195" height="185" alt="监控板">

这时五角星将变为初始大小。用箭头工具将它挪动到工作区中间,

///pc/homepage/flashsl/flash07/img/flash29.gif" width="299" height="200" alt="位于工作区中间的图片">

再用鼠标右键单击图层Layer1的第30帧,在弹出的菜单中选择Properties项,这时弹出一个帧属性对话框,选择Tweening选项卡,在Tweening栏中选择Motion,在Rotate栏中选择Counterclockwise,并在time域中填入1,表示五角星在从第30帧的位置移动到第45帧的位置的过程中,同时逆时针旋转一周。

///pc/homepage/flashsl/flash07/img/flash30.gif" width="412" height="208" alt="帧属性对话框">

  11)同样,在图层Layer1的第55帧插入一关键帧。用鼠标右键单击工作区中的五角星,在弹出的菜单中选择Properties项,

    ///pc/homepage/flashsl/flash07/img/flash31.gif" width="167" height="143" alt="在55帧处插入关键帧">    ///pc/homepage/flashsl/flash07/img/flash32.gif" width="212" height="120" alt="图片属性菜单">

弹出实例属性对话框,从中选择Color Effect选项卡,再在Color栏中选择Alpha,并将其值设置成0,

///pc/homepage/flashsl/flash07/img/flash33.gif" width="323" height="121" alt="图符属性">

点OK按钮,关闭对话框,这时五角星已变成全透明。最后用鼠标右键单击第45帧,在弹出的菜单中选择Creat Motion Tween项。

///pc/homepage/flashsl/flash07/img/flash34.gif" width="447" height="214" alt="最终程序">

  12)现在一个变幻的五角星已完成,选择菜单Control->Test Movie可看到五角星变化的动画效果。


上一步  下一实例(动态圆形按钮)

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

 

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