http...">
论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > Flash教程
Tag:flash cs,flash 8,鼠绘,as,手绘,工具,文字,loading,入门,初学,mc,影片剪辑,声音,mtv,游戏,引导,遮罩,菜单,补间,广告条,时钟,视频教程

载入提示画面(2)

文章类别:Flash | 发表日期:2008-9-21 20:11:35

   ※闪吧※<a target=_blank href=http://www.flash8.net<img src=../img/flash/20089212072799877801.gif border=0 align=absMiddle height=16 width=16> <a href="www.flash8.net" TARGET=_blank>[ 点击下载 ]</a></a>]                         FLASH 4 : 载入提示画面(2)          
                                                                                                                                                                                                                                                                                                                                                           http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="300" height="200">                                        http://www.flash8.net/file/Tutorials1/1015/11/11.swf";>                                                                                http://www.flash8.net/file/Tutorials1/1015/11/11.swf"; quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" width="300" height="200">                                                                               

                                                                                                                                                                                                 制作动画载入提示有许多不同的方式,端看个人喜爱的不同,这里再向各位介绍一种稍为改良的动画载入提示画面的做法。                                                                                                                                                               此篇的做法与上一篇做法类似,因此可先参考"载入提示画面(1)",与此篇做比较!                                                                                                                                                               http://www.flash8.net/file/Tutorials1/1015/11/line0.gif"; width="262" height="240">                                  影片大小:                                     300px X 200px                                                                                                                                                               http://www.flash8.net/file/Tutorials1/1015/11/line1.gif"; width="378" height="242">                                  元件名称--load(影像片段):                                     

在场景中画一个渐层颜色长条矩形,将图形移至场景中右侧,让图形的最左端对齐中心点的十字中心位置,如左图所示。这是因为我们等一下要让此长条图以左侧为基准点向右延伸来表示下载进度!

                                                                                                                                                                                                 http://www.flash8.net/file/Tutorials1/1015/11/line2.gif"; width="375" height="340">                                                                                                   场景1:
                                     图层名称--pc-netloadactions:                                     

pc-net图层:主动画内容(旋转的PC-NET文字动画)

                                    

load图层:载入提示动画内容(load元件)

                                    

actions图层:编辑动作指令

                                    将整段主动画往後挪移2格影格,变成从第3影格开始播放,参考左图pc-net图层。在第3影格处,设定标签                                     start。                                     

load图层上,从图库将load元件拉至场景中,并命名元件实体名称:loader,并且在场景中输入一段"载入中,请稍後..."的提示语,然後在第一个影格处设定标签load。                                     

以上2个标签设定好之後,接下来就剩下动作指令了。                                                                                                                                                                                                  http://www.flash8.net/file/Tutorials1/1015/11/line3.gif"; width="500" height="180">                                                                                                   上图为actions图层第1影格的动作指令内容。                                                                                                                                                               actions图层第1影格动作指令如下:                                     

假如                                                                              (_framesloaded >= _totalframes)
                                         前往并播放                                                                              ("start")
                                       否则
                                                                                设定内容                                                                              ("/loader"X                                        缩放)                                       = (_framesloaded / _totalframes)*100
                                       结束假如                                     

                                     actions图层第2影格动作指令如下:                                     

前往并播放                                       ("load")                                       

                                    actions图层最後1格影格动作指令如下:                                     

前往并播放                                       ("start")                                       

                                    

                                                                                                                                                                                                    _framesloaded                                     :                                       影格已载入
                                                                          _totalframes   :                                      总影格数
                                     (_framesloaded                                     / _totalframes)*100 :                                      将总影格数分成100个等份                                      

上述的语意是说:

                                    

假如已载入的影格数大於或等於总影格数,则跳至标签start影格播放(主动画开始处),否则的话,计算当时已载入的影格数百分比,显示於长条图的缩放比上。继续下一个影格动作;此时到了第2影格的动作指令,指定前往标签load影格处播放,如此,在这2格影格(载入提示动画场景中)反覆循环播放,直到已载入的影格数大於或等於总影格数为止。

                                    

actions图层最後1格影格的动作指令,只是指定重复播放主动画而已。

                                                                                                                                                                                                 http://www.flash8.net/file/Tutorials1/1015/11/line4.gif"; width="423" height="435">                                                                                                   测试动画载入提示画面:                                                                           

按下Ctrl+Enter测试影片,开启频宽设定(Ctrl+B),开启显示序列(Ctrl+Enter),提示画面的长条图将逐渐向右拉长,直到长条图拉至最长时,也就是所有影格皆已载入完毕後,则场景中会播放主动画旋转的PC-NET文字动画。

                                    

测试完毕!

                                    

如上图所示。

                                    

这样的制作方式,大约可以知道动画载入的进度,只是不知道具体的确实数据而已!所以下一篇将改进这个缺失,加入显示数字百分比提示的做法...                                                                                                                                                                                                                                                                     下一课:http://www.flash8.net/file/Tutorials1/1015/10.htm";>载入提示画面(3)

                                                                    
                                                   
上一篇:{教程}载入提示画面(1) 人气:1725
下一篇:{教程}载入提示画面(3) 人气:2492
Flash视频教程

Flash视频教程
Windows视频教程
Windows操作
[文]
WORD教程
Word教程
[文]
Excel教程
Excel教程
[文]
PowerPoint教程
PowerPoint
[文]
Dreamweaver
Dreamweaver
[文]
FIREWORKS
Fireworks
[文]
FLASH教程
Flash教程
[文]
photoshop平面设计
PhotoShop
[文]
CorelDraw
CorelDraw
[文]
C语言教程
C语言教程
[文]
html
Html教程
[文]
DivCss布局
Div+Css布局
[文]
Javascript
Javascript
[文]
ACCESS数据库
ACCESS数据库
[文]
ASP教程
ASP教程
[文]
SQLServer数据库
SQLServer
[文]
ASP.NET教程
ASP.NET教程
[文]
FlashAS
FlashAS
[文]
视频教程列表
计算机基础入门及办公自动化: 网页制作开发视频教程: 平面广告设计视频教程 初级程序设计及ASP动态网站开发 Asp.net动态网站开发视频教程 Flash 动画角本编程视频教程
文章教程搜索
 
Flash推荐教程
Flash热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058