As variáveis do Flash

Para quem precisa das variáveis da maquina do Cliente, abaixo segue as principais.

Arquivo main.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
    backgroundColor="#f6f6f6"
    backgroundGradientColors="[#f6f6f6, #bbbbbb]"
    creationComplete="init()"
    viewSourceURL="srcview/index.html">

    <mx:Label x="10" y="10" fontSize="20" fontWeight="bold"
              text="As variáveis do Flash" />
    <mx:HRule x="10" y="49" width="690" />

    <mx:Script>
        <![CDATA[
            import mx.controls.Alert;
            private function init():void
            {
                AreaVariaveis.text = "avHardwareDisable: " + Capabilities.avHardwareDisable;
                AreaVariaveis.text += "
hasAccessibility: " + Capabilities.hasAccessibility;
                AreaVariaveis.text += "
hasAudio: " + Capabilities.hasAudio;
                AreaVariaveis.text += "
hasAudioEncoder: " + Capabilities.hasAudioEncoder;
                AreaVariaveis.text += "
hasEmbeddedVideo: " + Capabilities.hasEmbeddedVideo;
                AreaVariaveis.text += "
hasMP3: " + Capabilities.hasMP3;
                AreaVariaveis.text += "
hasPrinting: " + Capabilities.hasPrinting;
                AreaVariaveis.text += "
hasScreenBroadcast: " + Capabilities.hasScreenBroadcast;
                AreaVariaveis.text += "
hasScreenPlayback: " + Capabilities.hasScreenPlayback;
                AreaVariaveis.text += "
hasStreamingAudio: " + Capabilities.hasStreamingAudio;
                AreaVariaveis.text += "
hasVideoEncoder: " + Capabilities.hasVideoEncoder;
                AreaVariaveis.text += "
isDebugger: " + Capabilities.isDebugger;
                AreaVariaveis.text += "
language: " + Capabilities.language;
                AreaVariaveis.text += "
localFileReadDisable: " + Capabilities.localFileReadDisable;
                AreaVariaveis.text += "
manufacturer: " + Capabilities.manufacturer;
                AreaVariaveis.text += "
os: " + Capabilities.os;
                AreaVariaveis.text += "
pixelAspectRatio: " + Capabilities.pixelAspectRatio;
                AreaVariaveis.text += "
playerType: " + Capabilities.playerType;
                AreaVariaveis.text += "
screenColor: " + Capabilities.screenColor;
                AreaVariaveis.text += "
screenDPI: " + Capabilities.screenDPI;
                AreaVariaveis.text += "
screenResolutionX: " + Capabilities.screenResolutionX;
                AreaVariaveis.text += "
screenResolutionY: " + Capabilities.screenResolutionY;
                AreaVariaveis.text += "
serverString: " + Capabilities.serverString;
                AreaVariaveis.text += "
version: " + Capabilities.version;
            }
        ]]>
    </mx:Script>
    <mx:TextArea id="AreaVariaveis" left="10" top="59" right="10" bottom="10"/>
</mx:Application>

Divirtam-se com o código.

Fique por dentro de nossas novidades, ideias e atualizações