仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 761|回复: 8
打印 上一主题 下一主题

[学习教程] 动画教程之Flash MX 2004新特征实例进修五 (1)

[复制链接]
愤怒的大鸟 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-1-15 21:23:18 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
本地或全局转换应用于任何对象。但非真正意义上的3D,层的位置关系其显示问题。
实例6、TextEnhancements
  1、触及特征
  在实例中,次要触及在MX2004中援用和显现内部的CSS文件和html文件。这些都是在FlashMX2004中才有的新特征,使用也十分便利。本实例在FlashMX2004中的操纵十分复杂,不外这正从正面反应了它的功效壮大。
  2、制造历程
  1、创建一个文件,定名为sample.css。其内容以下:  
  headline{
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px;
  font-weight:bold;
  display:block;
  }
  subheadline{
  font-family:Arial,Helvetica,sans-serif;
  font-size:13px;
  font-weight:bold;
  display:block;
  }
  mainBody{
  font-family:Arial,Helvetica,sans-serif;
  font-size:10px;
  display:block;
  }
  biline{
  font-family:Arial,Helvetica,sans-serif;
  font-size:11px;
  font-style:italic;
  display:inline;
  }
  A{
  font-family:Arial,Helvetica,sans-serif;
  color:cccccc;
  font-size:10px;
  display:inline;
  text-decoration:underline;
  }
  下面的css文件中,中括号内里的是对应的属性。好比font-family是字符集,font-size是字体巨细,display是字体的显现体例,等等。只需有复杂的网页制造常识就应当能够看懂的。
  2、新建一个文件,定名为sample.html,其内容以下:  
  GiantSeaLionSpotted
  Citizensscared,amazed  
  Today-OurCityAgiantsealionwasspottedtodayrampagingaroundthecitysmainsquare,scaringthousandsofinnocentpeoplejustoutforadailystrollinthebeautifuldowntowndistrict.
  Noinjurieswerereportedaftertheanimalstwo-hourassaultoftheshoppingdistrictfamousforitssealionpursesandshoes,alsoknownasthe"sealiondistrict".WitnessessaidthecreaturecameoutoftheoceanneartheBurgerKingat42ndand1stAvenue,startlingmanyandstallingtraffic.
  "Theanimalcausednearlyfourmilliondollarsofdamagetotheneighborhood,"saidJosephValente,ownerof"SeaLionsRUs"at43rdand2nd.Onlookerstothescenesaidthatthesealionappearedornery,butotherwiseingoodspirits.
</p>


</p>
[1]200806/15126_2.html>[2]200806/15126_2.html>下一页



  Officialsareuncertainastowhen,ifever,thesealionmayreturn.Clickhereformore.  
  这个文件的内容是使用了后面所创立的css格局的html文件。(严厉来讲,此文件更像是一个xml文件。)
3、将一个名为sample.jpg的图片放到跟第1、二步所创立的文件的统一目次中。
  4、新建一个FlashMX2004的文件,保留在跟后面所创立的文件地点的目次中。
  5、用文本工具在场景中拉一个文本输出框,定名为content。在属性面板上设置如1所示。
  6、在TimeLine中新建一个图层,定名为Action,在此层的Action面板下面增添以下语句:  
  /*Copyright2003Macromedia,Inc.Allrightsreserved.
  ThefollowingisSampleCodeandissubjecttoallrestrictions
  onsuchcodeascontainedintheEndUserLicenseAgreement
  accompanyingthisproduct.
  */  
  varss:TextField.StyleSheet=newTextField.StyleSheet();//正文1
  ss.load("sample.css");//正文2
  content.styleSheet=ss;//正文3
  content.multiline=true;
  content.wordWrap=true;
  content.html=true;  
  story=newXML();//正文4
  story.ignoreWhite=true;
  story.load("sample.html");//正文5
  story.onLoad=function(){//正文6
  content.h
200806/15126.html>上一页200806/15126.html>[1][2]


flash影片的后缀名为.swf,该类型文件必须有flash播放器才能打开(包括各大浏览器,视频播放器),且播放器的版本须不低于FLASH程序自带播放器的版本。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-6-4 17:13

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表