当前位置: 首页 > 图文教程 > Flash动画 > Flash动画制作 > MX2004--AS2.0 新特性实例教程(五)

Flash动画制作
Flash AS 3.0实例教程:用Tween类制作缓动动画
Flash AS2实例教程:制作镭射闪光字动画效果
Flash AS2基础教程:一步绘制线条
Flash cs3仿真艺术设计4.4:模糊滤镜的应用
Flash cs3仿真艺术设计4.5:模糊运动制作飞行文字
Flash cs3仿真艺术设计4.6:组合效果应用实例
Flash cs3仿真艺术设计4.7:模糊滤镜的应用
Flash AS 3.0基础教程:物理基础之重力
Flash AS3.0菜鸟学飞教程:创建自定义类
Flash cs3仿真艺术设计4.8:选择模糊的应用
Flash cs3仿真艺术设计4.9:背景模糊应用技巧
Flash AS3.0菜鸟学飞教程:类的编写之时间轴代码转换为外部类
Flash AS3.0菜鸟学飞教程:类的编写之不使用库元件
Flash cs3仿真艺术设计5.1:2.5D基础应用
Flash cs3仿真艺术设计5.2:2.5D高级应用
Flash AS3.0菜鸟学飞教程:含有多个类的AS3类文件
Flash AS3.0实例教程:AS3.0代码制作3D旋转动画效果
Flash cs3仿真艺术设计5.3:2.5D动画技巧之绘制猴子
Flash cs3仿真艺术设计5.4:交换方法制作嘴型吻合
Flash cs3仿真艺术设计5.5:嵌套法打造角色嘴型吻合

Flash动画制作 中的 MX2004--AS2.0 新特性实例教程(五)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-22   浏览: 40 ::
收藏到网摘: n/a

17.System.capabilities对象

  System.capabilities对象可以让我们获得很多有价值的系统信息。

  mx2004比起mx新增加了一些属性。

  我们用最简单的方法遍历这些属性并与mx比较:

  在mx和mx2004中分别运行下面的语句

for(var temp in System.capabilities) trace(temp+":"+System.capabilities[temp]);

  MX的输出结果:

  language:zh
  os:Windows XP
  input:point
  manufacturer:Macromedia Windows
  serverString:A=t&=t&AE=t&VE=t&ACC=f&DEB=t&V=WIN%206%2C0%2C21%2C0&M=Macromedia

  Windows&R=1024x768&DP=72&COL=color&AR=1.0&I=point&OS=Windows XP&L=zh-CN
  isDebugger:true
  version:WIN 6,0,21,0
  hasAudio:true
  hasMP3:true
  hasAudioEncoder:true
  hasVideoEncoder:true
  screenResolutionX:1024
  screenResolutionY:768
  screenDPI:72
  screenColor:color
  pixelAspectRatio:1
  hasAccessibility:false

  MX2004的输出结果:

  language:zh-CN
  os:Windows XP
  manufacturer:Macromedia Windows
  windowlessDisable:false
  localFileReadDisable:false
  avHardwareDisable:false
  playerType:External
  isDebugger:true
  hasScreenBroadcast:false
  hasScreenPlayback:true
  hasPrinting:true
  hasEmbeddedVideo:true
  hasStreamingVideo:true
  hasStreamingAudio:true
  version:WIN 7,0,14,0
  serverString:A=t&SA=t&SV=t&EV=t&MP3=t&AE=t&VE=t
  &ACC=f&PR=t&SP=t&SB=f&DEB=t&
  V=WIN%207%2C0%2C14%2C0&M=Macromedia%20Windows&R=1024x768&DP=72&COL=color&
  AR=1.0&OS=Windows%20XP&L=zh-CN&PT=External&AVD=f&LFD=f&WD=f
  hasAudio:true
  hasMP3:true
  hasAudioEncoder:true
  hasVideoEncoder:true
  screenResolutionX:1024
  screenResolutionY:768
  screenDPI:72
  screenColor:color
  pixelAspectRatio:1
  hasAccessibility:false

  本着“新特性”的原则,我只对新增加的属性进行说明:

  avHardwareDisable: 是否禁用麦克风和摄像头

  playerType: Player的类型,如“独立”“外部”“插件”等

  localFileReadDisable: Flash Player是否可以在本地写入文件

  hasPrinting: 是否拥有打印设备

  hasEmbeddedVideo: 是否支持嵌入视频

  hasStreamingVideo: 是否支持流格式视频

  hasStreamingAudio: 是否支持流格式音频

  hasScreenBroadcast: 与flash com有关的一项属性,Flash Player是否支持屏幕广播

  hasScreenPlayback: 也是与flash com相关,Flash Player是否支持屏幕广播回放

  windowlessDisable: 不祥,是否禁用无边窗口?