=================================
=================================
=================================
출처: http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_24933434.html
package { import flash.display.Sprite; import flash.system.Capabilities; public class CapabilitiesExample extends Sprite { public function CapabilitiesExample() { showCapabilities(); } private function showCapabilities():void { trace("avHardwareDisable: " + Capabilities.avHardwareDisable); trace("hasAccessibility: " + Capabilities.hasAccessibility); trace("hasAudio: " + Capabilities.hasAudio); trace("hasAudioEncoder: " + Capabilities.hasAudioEncoder); trace("hasEmbeddedVideo: " + Capabilities.hasEmbeddedVideo); trace("hasMP3: " + Capabilities.hasMP3); trace("hasPrinting: " + Capabilities.hasPrinting); trace("hasScreenBroadcast: " + Capabilities.hasScreenBroadcast); trace("hasScreenPlayback: " + Capabilities.hasScreenPlayback); trace("hasStreamingAudio: " + Capabilities.hasStreamingAudio); trace("hasVideoEncoder: " + Capabilities.hasVideoEncoder); trace("isDebugger: " + Capabilities.isDebugger); trace("language: " + Capabilities.language); trace("localFileReadDisable: " + Capabilities.localFileReadDisable); trace("manufacturer: " + Capabilities.manufacturer); trace("os: " + Capabilities.os); trace("pixelAspectRatio: " + Capabilities.pixelAspectRatio); trace("playerType: " + Capabilities.playerType); trace("screenColor: " + Capabilities.screenColor); trace("screenDPI: " + Capabilities.screenDPI); trace("screenResolutionX: " + Capabilities.screenResolutionX); trace("screenResolutionY: " + Capabilities.screenResolutionY); trace("serverString: " + Capabilities.serverString); trace("version: " + Capabilities.version); } } }
=================================
=================================
=================================
출처ㅣ https://forums.adobe.com/thread/803428
You use the MAC address of the device.
To obtain the address at runtime, use the NetworkInfo class, which gets a list of interfaces
and looks for a hardwareAddress. It is the MAC address for your device:
if (NetworkInfo.isSupported) {
trace("network information is supported");
}
var network:NetworkInfo = NetworkInfo.networkInfo;
for each (var object:NetworkInterface in network.findInterfaces()) {
if (object.hardwareAddress) {
trace(object.hardwareAddress);
}
}
The address looks something like this:
00:23:76:BB:46:AA
=================================
=================================
=================================
'ADOBE > ActionScript' 카테고리의 다른 글
air 애플리케이션 개발 Application icons (0) | 2014.12.08 |
---|---|
[AS] Introduction to Adobe Air (0) | 2014.12.04 |
액션스크립트 actionscript Flash Player 11.8.800.168 한글 깨짐 현상 url 로드에러 현상 url 불러오기 에러 (0) | 2014.11.21 |
외부파일과 연동하는 법을 배워 봅시다. (Loader, XML) 액션스크립트 XML 연동 관련 (0) | 2014.11.20 |
adobe 액션스크립트 AS UTC를 이용한 각 국가별 시간 구하기 (0) | 2014.10.21 |