avHardwareDisable

  사용자의 카메라와 마이크에 대한 액세스가 금지되었는지(true) 또는 허용되었는지(false)를 지정합니다. 서버 문자열은 AVD입니다.

  Adobe AIR™에 있는 내용의 경우 이 속성은 응용 프로그램 보안 샌드박스가 아닌 보안 샌드박스의 내용에만 적용됩니다. 응용 프로그램 보안 샌드박스의 내용은 항상 사용자의 카메라 및 마이크에 액세스할 수 있습니다.

 Specifies whether access to the user's camera and microphone has been administratively prohibited (true) or allowed (false).

 cpuArchitecture

 현재 CPU 아키텍처를 지정합니다. cpuArchitecture 속성은 "PowerPC", "x86", "SPARC" 및 "ARM" 문자열을 반환할 수 있습니다. 서버 문자열은 ARCH입니다. 
 Specifies the current CPU architecture.

 hasAccessibility

 시스템에서 액세스 가능성 도구와의 통신을 지원하는지(true) 또는 지원하지 않는지(false) 여부를 지정합니다. 서버 문자열은 ACC입니다.

 Specifies whether the system supports (true) or does not support (false) communication with accessibility aids.

 hasAudio

 시스템에 오디오 기능이 있는지 여부를 지정합니다. 이 속성은 항상 true입니다. 서버 문자열은 A입니다.

 Specifies whether the system has audio capabilities.

 hasAudioEncoder

 시스템에서 마이크 입력 등의 오디오 스트림을 인코딩할 수 있는지(true) 또는 인코딩할 수 없는지(false) 여부를 지정합니다. 서버 문자열은 AE입니다. 

 Specifies whether the system can (true) or cannot (false) encode an audio stream, such as that coming from a microphone.

 hasEmbeddedVideo

 시스템에서 포함된 비디오를 지원하는지(true) 또는 지원하지 않는지(false) 여부를 지정합니다. 서버 문자열은 EV입니다.

 Specifies whether the system supports (true) or does not support (false) embedded video.

 hasIME

 시스템에 IME가 설치되어 있는지(true) 또는 설치되어 있지 않은지(false) 여부를 지정합니다. 서버 문자열은 IME입니다.

 Specifies whether the system does (true) or does not (false) have an input method editor (IME) installed.

 hasMP3

 시스템에 MP3 디코더가 있는지(true) 또는 없는지(false) 여부를 지정합니다. 서버 문자열은 MP3입니다.

 Specifies whether the system does (true) or does not (false) have an MP3 decoder.

 hasPrinting

 시스템에서 인쇄를 지원하는지(true) 또는 지원하지 않는지(false) 여부를 지정합니다. 서버 문자열은 PR입니다.

 Specifies whether the system does (true) or does not (false) support printing.

 hasScreenBroadcast

 시스템에서 Flash Media Server를 통해 실행되는 스크린 브로드캐스트 응용 프로그램 개발을 지원하는지(true) 또는 지원하지 않는지(false) 여부를 지정합니다. 서버 문자열은 SB입니다. 
 Specifies whether the system does (true) or does not (false) support the development of screen broadcast applications to be run through Flash Media Server.

 hasScreenPlayback

  시스템에서 Flash Media Server를 통해 실행되는 스크린 브로드캐스트 응용 프로그램의 재생을 지원하는지(true) 또는 지원하지 않는지(false) 여부를 지정합니다. 서버 문자열은 SP입니다.

 Specifies whether the system does (true) or does not (false) support the playback of screen broadcast applications that are being run through Flash Media Server.

 hasStreamingAudio

 시스템에서 스트리밍 오디오를 재생할 수 있는지(true) 또는 재생할 수 없는지(false) 여부를 지정합니다. 서버 문자열은 SA입니다.

 Specifies whether the system can (true) or cannot (false) play streaming audio.

 hasStreamingVideo

 시스템에서 스트리밍 비디오를 재생할 수 있는지(true) 또는 재생할 수 없는지(false) 여부를 지정합니다. 서버 문자열은 SV입니다.

 Specifies whether the system can (true) or cannot (false) play streaming video.

 hasTLS

 시스템에서 NetConnection을 통한 기본 SSL 소켓을 지원하는지(true) 또는 지원하지 않는지(false) 여부를 지정합니다. 서버 문자열은 TLS입니다. 
 Specifies whether the system supports native SSL sockets through NetConnection (true) or does not (false).

 hasVideoEncoder

 시스템에서 웹 카메라 입력 등의 비디오 스트림을 인코딩할 수 있는지(true) 또는 인코딩할 수 없는지(false) 여부를 지정합니다. 서버 문자열은 VE입니다. 
 Specifies whether the system can (true) or cannot (false) encode a video stream, such as that coming from a web camera.

 isDebugger

 시스템이 특수 디버깅 버전인지(true) 또는 정식으로 출시된 버전인지(false) 여부를 지정합니다. 서버 문자열은 DEB입니다. Flash Player의 디버그 버전 또는 ADL(AIR Debug Launcher)에서 실행할 경우 이 속성은 true로 설정됩니다. 
 Specifies whether the system is a special debugging version (true) or an officially released version (false).

 isEmbeddedInAcrobat

 Flash 런타임이 Acrobat 9.0 이상에서 열리는 PDF 파일에 포함되어 있는지(true) 아니면 포함되어 있지 않은지(false)를 지정합니다.

 Specifies whether the Flash runtime is embedded in a PDF file that is open in Acrobat 9.0 or higher (true) or not (false).

 language

 내용이 실행되는 시스템의 언어 코드를 지정합니다. 언어는 ISO 639-1에 소문자로 지정된 두 글자 언어 코드로 지정됩니다. 중국어의 경우 ISO 3166의 대문자로 된 두 글자 국가 코드가 추가되어 중국어 간체와 번체가 구별됩니다. 언어 코드는 해당 언어의 영어 이름에 기초합니다. 예를 들어 헝가리어는 hu로 지정됩니다.

영어 시스템에서 이 속성은 국가 코드가 아닌 언어 코드(en)만 반환합니다. Microsoft Windows 시스템에서 이 속성은 모든 메뉴, 대화 상자, 오류 메시지 및 도움말 파일에 사용되는 언어를 참조하는 UI(사용자 인터페이스) 언어를 반환합니다. 다음 표에는 가능한 값이 나열되어 있습니다.

    참고: Capabilities.language 속성에는 이 목록의 값만 사용할 수 있습니다. 이러한 제한 사항으로 인해 Adobe AIR 응용 프로그램에서는 Capabilities.languages 배열의 첫 번째 요소를 사용하여 시스템의 기본 사용자 인터페이스 언어를 확인해야 합니다.

서버 문자열은 L입니다. 

 Specifies the language code of the system on which the content is running.

 localFileReadDisable

 사용자의 하드 디스크에 대한 읽기 액세스를 금지되었는지(true) 또는 허용되었는지(false)를 지정합니다. Adobe AIR에 있는 내용의 경우 이 속성은 응용 프로그램 보안 샌드박스가 아닌 보안 샌드박스의 내용에만 적용됩니다. 응용 프로그램 보안 샌드박스의 내용은 항상 파일 시스템에서 읽습니다. 이 속성이 true이면 Flash Player에서 Flash Player가 시작된 첫 번째 파일을 포함하여 사용자 하드 디스크의 파일을 읽을 수 없습니다. 이 속성이 true이면 응용 프로그램 보안 샌드박스 외부의 AIR 내용은 사용자 하드 디스크의 파일을 읽을 수 없습니다. 예를 들어 이 속성이 true로 설정되어 있으면 load 메서드를 통해 사용자의 하드 디스크에 있는 파일을 읽으려는 시도가 실패합니다.

 이 속성이 true로 설정되면 런타임 공유 라이브러리 읽기도 차단되지만 로컬 공유 객체는 이 속성 값에 관계없이 읽을 수 있습니다.

서버 문자열은 LFD입니다.

 Specifies whether read access to the user's hard disk has been administratively prohibited (true) or allowed (false).

 manufacturer

 실행 중인 버전의 Flash Player 또는 AIR 런타임 제조업체를 "Adobe OSName" 형식으로 지정합니다. OSName 값은 "Windows", "Macintosh", "Linux" 또는 기타 운영 체제 이름이 될 수 있습니다. 서버 문자열은 M입니다.

보다 구체적인 capability 속성이 존재하는 경우 운영 체제에 기반한 기능을 확인하기 위해 Capabilities.manufacturer를 사용하지 마십시오. 기능이 운영 체제에 기반하도록 하면 응용 프로그램이 모든 잠재적 대상 운영 체제를 고려하지 않는 경우 문제가 발생할 수 있으므로 좋지 않습니다. 대신, 테스트하는 기능에 해당하는 속성을 사용하십시오. 자세한 내용은 Capabilities 클래스 설명을 참조하십시오.

 Specifies the manufacturer of the running version of Flash Player or the AIR runtime, in the format "Adobe OSName".

 maxLevelIDC

 클라이언트 하드웨어가 지원하는 최상의 H.264 수준 IDC를 검색합니다. 이 수준에서 미디어를 실행하면 항상 실행되지만 최상의 수준에서 미디어를 실행하면 최상의 품질로 실행되지 않을 수도 있습니다. 이 속성은 클라이언트의 기능을 대상으로 지정하는 서버에 유용합니다. 이 속성을 사용하면 서버에서 클라이언트에 보낼 비디오의 수준을 결정할 수 있습니다.

서버 문자열은 ML입니다. 

 Retrieves the highest H.264 Level IDC that the client hardware supports.

 os

 현재 운영 체제를 지정합니다.

 Specifies the current operating system.

 pixelAspectRatio

 스크린의 픽셀 종횡비를 지정합니다. 서버 문자열은 AR입니다.

 Specifies the pixel aspect ratio of the screen.

 playerType

 런타임 환경의 유형을 지정합니다. 이 속성은 다음 값 중 하나를 가질 수 있습니다. "ActiveX": Microsoft Internet Explorer에서 사용하는 Flash Player ActiveX 컨트롤의 경우

  • "Desktop": Adobe AIR 런타임의 경우(Capabilities.playerType"PlugIn"으로 설정된 HTML 페이지에서 로드한 SWF 내용 제외)
  • "External": 외부 Flash Player용 또는 테스트 모드의 경우
  • "PlugIn": Flash Player 브라우저 플러그인 및 AIR 응용 프로그램의 HTML 페이지에서 로드한 SWF 내용의 경우
  • "StandAlone": 독립 실행형 Flash Player의 경우

서버 문자열은 PT입니다.

 Specifies the type of runtime environment.

 screenColor

 스크린 색상을 지정합니다. 이 속성의 값은 "color", "gray"(회색조) 또는 "bw"(흑백)일 수 있습니다. 서버 문자열은 COL입니다.

 Specifies the screen color.

 screenDPI

 스크린의 dpi(인치당 도트 수) 해상도를 픽셀 단위로 지정합니다. 서버 문자열은 DP입니다.

 Specifies the dots-per-inch (dpi) resolution of the screen, in pixels.

 screenResolutionX

 스크린의 최대 수평 해상도를 지정합니다. 서버 문자열은 화면의 폭과 높이를 모두 반환하는 R입니다. 이 속성은 사용자의 화면 해상도로 업데이트되지 않고 대신 Flash Player 또는 Adobe AIR 응용 프로그램이 시작했을 때의 해상도만 표시합니다. 또한 이 값은 기본 스크린만 지정합니다. 
 Specifies the maximum horizontal resolution of the screen.

 screenResolutionY

  스크린의 최대 수직 해상도를 지정합니다. 서버 문자열은 화면의 폭과 높이를 모두 반환하는 R입니다. 이 속성은 사용자의 화면 해상도로 업데이트되지 않고 대신 Flash Player 또는 Adobe AIR 응용 프로그램이 시작했을 때의 해상도만 표시합니다. 또한 이 값은 기본 스크린만 지정합니다.

 Specifies the maximum vertical resolution of the screen.

 serverString

 각 Capabilities 속성의 값을 지정하는 URL 인코딩 문자열입니다.

 A URL-encoded string that specifies values for each Capabilities property.

 supports32BitProcesses

 시스템이 32비트 프로세스 실행을 지원하는지 여부를 지정합니다. 서버 문자열은 PR32입니다.

 Specifies whether the system supports running 32-bit processes.

 supports64BitProcesses

 시스템이 64비트 프로세스 실행을 지원하는지 여부를 지정합니다. 서버 문자열은 PR64입니다.

 Specifies whether the system supports running 64-bit processes.

 touchscreenType

 지원되는 터치 스크린이 있는 경우 터치 스크린의 유형을 지정합니다. 값이 flash.system.TouchscreenType 클래스에 정의됩니다.

 Specifies the type of touchscreen supported, if any.

 version

 Flash Player 또는 Adobe® AIR® 플랫폼 및 버전 정보를 지정합니다. 버전 번호의 형식은

 platform  majorVersion,minorVersion,buildNumber,internalBuildNumber입니다. platform에 사용할 수 있는 값은 "WIN", ` "MAC", "LNX"   "AND"입니다.

 Specifies the Flash Player or Adobe® AIR® platform and version information.

*source : http://help.adobe.com/ko_KR/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html

 

 

*source code : CapabilitiesExample.fxp

 

<?xml version="1.0" encoding="utf-8"?>

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

                       xmlns:s="library://ns.adobe.com/flex/spark"

                       xmlns:mx="library://ns.adobe.com/flex/mx"

                       minWidth="955"

                       minHeight="600"

                       backgroundColor="#aaaaaa"

                       >

       <fx:Script>

             <![CDATA[

                   /*  http://storyjava.tistory.com

                    *  code5381@hotmail.com

                    *  KevinKim

                    */

                    import mx.controls.Alert;

                    private function show():void

                    {

                           Alert.show("Capabilities.avHardwareDisable : " + Capabilities.avHardwareDisable.toString()

                                         + "\n cpuArchitecture : " + Capabilities.cpuArchitecture

                                         + "\n hasAccessibility: " + Capabilities.hasAccessibility.toString()

                                         + "\n hasAudio: " + Capabilities.hasAudio.toString()

                                         + "\n hasAudioEncoder: " + Capabilities.hasAudioEncoder.toString()

                                         + "\n hasEmbeddedVideo: " + Capabilities.hasEmbeddedVideo.toString()

                                         + "\n hasIME: " + Capabilities.hasIME.toString()

                                         + "\n hasMP3: " + Capabilities.hasMP3.toString()

                                         + "\n hasPrinting: " + Capabilities.hasPrinting.toString()

                                         + "\n hasScreenBroadcast: " + Capabilities.hasScreenBroadcast.toString

                                         + "\n hasScreenPlayback: " + Capabilities.hasScreenPlayback.toString()

                                         + "\n hasStreamingAudio: " + Capabilities.hasStreamingAudio.toString()

                                         + "\n hasStreamingVideo: " + Capabilities.hasStreamingVideo.toString()

                                         + "\n hasTLS: " + Capabilities.hasTLS.toString()

                                         + "\n hasVideoEncoder: " + Capabilities.hasVideoEncoder.toString()

                                         + "\n isDebugger: " + Capabilities.isDebugger.toString()

                                         + "\n isEmbeddedInAcrobat: " + Capabilities.isEmbeddedInAcrobat.toString()

                                         + "\n language: " + Capabilities.language

                                         + "\n localFileReadDisable: " + Capabilities.localFileReadDisable.toString()

                                         + "\n manufacturer: " + Capabilities.manufacturer

                                         + "\n maxLevelIDC: " + Capabilities.maxLevelIDC

                                         + "\n os: " + Capabilities.os

                                         + "\n pixelAspectRatio: " + Capabilities.pixelAspectRatio.toString()

                                         + "\n playerType: " + Capabilities.playerType

                                         + "\n playerType: " + Capabilities.screenColor

                                         + "\n screenDPI: " + Capabilities.screenDPI.toString()

                                         + "\n screenDPI: " + Capabilities.screenResolutionX.toString()

                                         + "\n screenResolutionY: " + Capabilities.screenResolutionY.toString()

                                         + "\n serverString: " + Capabilities.serverString

                                         + "\n supports32BitProcesses: " + Capabilities.supports32BitProcesses.toString()

                                         + "\n supports64BitProcesses: " + Capabilities.supports64BitProcesses.toString()

                                         + "\n touchscreenType: " + Capabilities.touchscreenType

                                         + "\n version: " + Capabilities.version

                                        );

                    }

             ]]>

       </fx:Script>

       <s:Button label="Show System Info" click="show();"/>

</s:Application>

'Adobe Platform > Flex' 카테고리의 다른 글

DispatchEvent Example  (0) 2012.09.25
NetStreamInfo Class  (0) 2012.09.17
ActionScript Reference  (0) 2012.09.17
Custom Event Dispatch  (0) 2012.09.14
PopUpManager Examples (Simple PopUpManager Example)  (0) 2012.09.14
AND