No ActionScript 3 temos um objeto chamado Capabilities. Ele é responsável por informações das "Capacidades" da maquina do usuário. Com isso execute o código abaixo e descubra a capacidade da sua maquina:
1: import flash.system.Capabilities;
2:3: trace("avHardwareDisable: " + Capabilities.avHardwareDisable);
4: trace("hasAccessibility: " + Capabilities.hasAccessibility);
5: trace("hasAudio: " + Capabilities.hasAudio);
6: trace("hasAudioEncoder: " + Capabilities.hasAudioEncoder);
7: trace("hasEmbeddedVideo: " + Capabilities.hasEmbeddedVideo);
8: trace("hasMP3: " + Capabilities.hasMP3);
9: trace("hasPrinting: " + Capabilities.hasPrinting);
10: trace("hasScreenBroadcast: " + Capabilities.hasScreenBroadcast);
11: trace("hasScreenPlayback: " + Capabilities.hasScreenPlayback);
12: trace("hasStreamingAudio: " + Capabilities.hasStreamingAudio);
13: trace("hasVideoEncoder: " + Capabilities.hasVideoEncoder);
14: trace("isDebugger: " + Capabilities.isDebugger);
15: trace("language: " + Capabilities.language);
16: trace("localFileReadDisable: " + Capabilities.localFileReadDisable);
17: trace("manufacturer: " + Capabilities.manufacturer);
18: trace("os: " + Capabilities.os);
19: trace("pixelAspectRatio: " + Capabilities.pixelAspectRatio);
20: trace("playerType: " + Capabilities.playerType);
21: trace("screenColor: " + Capabilities.screenColor);
22: trace("screenDPI: " + Capabilities.screenDPI);
23: trace("screenResolutionX: " + Capabilities.screenResolutionX);
24: trace("screenResolutionY: " + Capabilities.screenResolutionY);
25: trace("serverString: " + Capabilities.serverString);
26: trace("version: " + Capabilities.version);
Olá Rafael, interessante a dica, porém estou usando Windows 7 e as infos de Capabilities reconhece o "OS" como Windows Vista.
ResponderExcluirSim até porque o Windows 7 na verdade é o Windows Vista 6.1
ResponderExcluir