ActionScript 3 AS3 flash.system.Capabilities属性

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ActionScript 3 AS3 flash.system.Capabilities属性相关的知识,希望对你有一定的参考价值。

import flash.system.Capabilities;

trace("Capabilities.avHardwareDisable: "+Capabilities.avHardwareDisable);
trace("Capabilities.hasAccessibility: "+Capabilities.hasAccessibility);
trace("Capabilities.hasAudio: "+Capabilities.hasAudio);
trace("Capabilities.hasAudioEncoder: "+Capabilities.hasAudioEncoder);
trace("Capabilities.hasEmbeddedVideo: "+Capabilities.hasEmbeddedVideo);
trace("Capabilities.hasMP3: "+Capabilities.hasMP3);
trace("Capabilities.hasPrinting: "+Capabilities.hasPrinting);
trace("Capabilities.hasScreenBroadcast: "+Capabilities.hasScreenBroadcast);
trace("Capabilities.hasScreenPlayback: "+Capabilities.hasScreenPlayback);
trace("Capabilities.hasStreamingAudio: "+Capabilities.hasStreamingAudio);
trace("Capabilities.hasVideoEncoder: "+Capabilities.hasVideoEncoder);
trace("Capabilities.isDebugger: "+Capabilities.isDebugger);
trace("Capabilities.language: "+Capabilities.language);
trace("Capabilities.localFileReadDisable: "+Capabilities.localFileReadDisable);
trace("Capabilities.manufacturer: "+Capabilities.manufacturer);
trace("Capabilities.os: "+Capabilities.os);
trace("Capabilities.pixelAspectRatio: "+Capabilities.pixelAspectRatio);
trace("Capabilities.playerType: "+Capabilities.playerType);
trace("Capabilities.screenColor: "+Capabilities.screenColor);
trace("Capabilities.screenDPI: "+Capabilities.screenDPI);
trace("Capabilities.screenResolutionX: "+Capabilities.screenResolutionX);
trace("Capabilities.screenResolutionY: "+Capabilities.screenResolutionY);
trace("Capabilities.serverString: "+Capabilities.serverString);
trace("Capabilities.version: "+Capabilities.version);

// OUTPUT ...
//Capabilities.avHardwareDisable: false
//Capabilities.hasAccessibility: true
//Capabilities.hasAudio: true
//Capabilities.hasAudioEncoder: true
//Capabilities.hasEmbeddedVideo: true
//Capabilities.hasMP3: true
//Capabilities.hasPrinting: true
//Capabilities.hasScreenBroadcast: false
//Capabilities.hasScreenPlayback: false
//Capabilities.hasStreamingAudio: true
//Capabilities.hasVideoEncoder: true
//Capabilities.isDebugger: true
//Capabilities.language: en
//Capabilities.localFileReadDisable: false
//Capabilities.manufacturer: Adobe Windows
//Capabilities.os: Windows XP
//Capabilities.pixelAspectRatio: 1
//Capabilities.playerType: External
//Capabilities.screenColor: color
//Capabilities.screenDPI: 72
//Capabilities.screenResolutionX: 1280
//Capabilities.screenResolutionY: 1024
//Capabilities.serverString: A=t&SA=t&SV=t&EV=t&MP3=t&AE=t&VE=t&ACC=t&PR=t&SP=f&SB=f&DEB=t&V=WIN%2010%2C0%2C22%2C91&M=Adobe%20Windows&R=1280x1024&DP=72&COL=color&AR=1.0&OS=Windows%20XP&L=en&IME=t&PT=External&AVD=f&LFD=f&WD=f&TLS=t&ML=5.1
//Capabilities.version: WIN 10,0,22,91

以上是关于ActionScript 3 AS3 flash.system.Capabilities属性的主要内容,如果未能解决你的问题,请参考以下文章

ActionScript 3 条件速记Flash AS3

ActionScript 3 cerrar aplicacion flash as3

ActionScript 3 AS3 flash.system.Capabilities属性

ActionScript 3 使用AS3从Flash触发Javascript

ActionScript 3 在Flash AS3中嵌入抗锯齿字体

ActionScript 3 简单的Flash AS3画廊/幻灯片