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

///pc/img/blank.gif" width="1" height="1">
13.制作电影的预载之一

预览成品:

///pc/homepage/flashsl/flash13/swf/preloader2.zip">下载源程序


逐步说明:
  1)Flash的“swf”电影文件主要在网上发行,如果电影文件使用到大量的动画及音效,一边下载一边播放必定会使作品的效果大打折扣,使用预先下载画面,一开始时先让浏览者等一会儿,等到整个电影文件全部下载完成之后,才会跳至电影的主要画面,这样就可以让电影一路很顺畅的播放。
  2)绘制出下载界面如图所示。

///pc/homepage/flashsl/flash13/img/flash001.gif" width="402" height="280" alt="初始界面">

  3)该电影场景共分两段画面,前面一段是预先下载画面Preloader,后面一段是电影主要画面Movie Start。用鼠标右键点击主画面的第一个影帧,选择“Properties”项,///pc/homepage/flashsl/flash13/img/flash002.gif" width="123" height="48" align="absmiddle" alt="帧属性菜单">

把弹出的对话框切换到“Label”选项卡,在Name域中填入“start”,即在该帧设置其标签名为“start”。

   ///pc/homepage/flashsl/flash13/img/flash003.gif" width="248" height="124" alt="输入标签名字">   ///pc/homepage/flashsl/flash13/img/flash004.gif" width="157" height="88" alt="增加标签的程序">

  4)新增一Movie Clip,绘制出一长方形色块,并从图符资料库中拉入到场景中的适当位置,

///pc/homepage/flashsl/flash13/img/flash005.gif" width="369" height="232" alt="长方形色块">

用鼠标双击它,把弹出的对话框切换到“Definition”选项卡,在Instance Name域中输入“loader”,即其实体名字为“loader”。

///pc/homepage/flashsl/flash13/img/flash006.gif" width="448" height="212" alt="图符实体名字">

  5)选择工具栏中的文字工具///pc/homepage/flashsl/flash13/img/flashtxt.gif" width="24" height="20" align="absmiddle" alt="文字按钮">,单击其参数栏中的“Text Field”按钮///pc/homepage/flashsl/flash13/img/flash007.gif" width="25" height="24" align="absmiddle" alt="文本框按钮">,在长方形色块下方拖出如图所示的文本区域。

///pc/homepage/flashsl/flash13/img/flash008.gif" width="312" height="149" alt="拖出的文本区域">

用箭头工具///pc/homepage/flashsl/flash13/img/flashjt.gif" width="24" height="23" align="absmiddle" alt="箭头工具">把它选中,并用鼠标右键单击它,在弹出的菜单中选择“Properties”项,

///pc/homepage/flashsl/flash13/img/flash009.gif" width="201" height="89" alt="文本框属性菜单">

进入文本框属性对话框,在“ariable”域中输入“percent”,表示在该文本框中显示变量“percent”的值。

///pc/homepage/flashsl/flash13/img/flash010.gif" width="302" height="187" alt="文本框属性">


上一实例(酷炫鼠标)  下一步

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

 

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