<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex Examples &#187; isDebugger</title>
	<atom:link href="http://blog.flexexamples.com/tag/isdebugger/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Checking the user&#8217;s Flash Player capabilities using the flash.system.Capabilities class</title>
		<link>http://blog.flexexamples.com/2007/08/08/checking-the-users-flash-player-capabilities-using-the-flashsystemcapabilities-class/</link>
		<comments>http://blog.flexexamples.com/2007/08/08/checking-the-users-flash-player-capabilities-using-the-flashsystemcapabilities-class/#comments</comments>
		<pubDate>Thu, 09 Aug 2007 03:12:24 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Capabilities]]></category>
		<category><![CDATA[isDebugger]]></category>
		<category><![CDATA[serverString]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/08/checking-the-users-flash-player-capabilities-using-the-flashsystemcapabilities-class/</guid>
		<description><![CDATA[<p>There are a lot of times when you may want to know what version of the Flash Player plug-in your visitors are using. Or perhaps you want to know their screen resolution, operating system, language, whether they have accessibility or an IME. Finding all this out is simple thanks to the Flash Player&#8217;s flash.system.Capabilities class.</p> [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of times when you may want to know what version of the Flash Player plug-in your visitors are using. Or perhaps you want to know their screen resolution, operating system, language, whether they have accessibility or an IME. Finding all this out is simple thanks to the Flash Player&#8217;s flash.system.Capabilities class.</p>
<p>The following application will show how you can grab all the capabilities of the user&#8217;s Flash Player and display them in an easy-to-read DataGrid control.</p>
<p>Full code after the jump.</p>
<p><span id="more-68"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/System_Capabilities_test/main.mxml">View MXML</a></p>
<pre class="code" language="actionscript">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import flash.system.Capabilities;

            /* Label function for the nameCol DataGridColumn object. */
            private function nameColFunc(item:Object, column:DataGridColumn):String {
                var ss:String = item.@serverString;
                if (ss.length &gt; 0) {
                    ss = " (" + ss + ")";
                }
                return item.@name + ss;
            }

            /* Label function for the valueCol DataGridColumn object. */
            private function valueColFunc(item:Object, column:DataGridColumn):String {
                return Capabilities[item.@name];
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:XML id="capabilitiesXML" source="capabilities.xml" /&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Label text="Player version: {Capabilities.version} (debug={Capabilities.isDebugger})" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:DataGrid id="dataGrid" width="100%" height="100%" variableRowHeight="true"&gt;
        &lt;mx:dataProvider&gt;{capabilitiesXML.property}&lt;/mx:dataProvider&gt;
        &lt;mx:columns&gt;
            &lt;mx:DataGridColumn id="nameCol" labelFunction="nameColFunc" headerText="Property name (server string):" /&gt;
            &lt;mx:DataGridColumn id="valueCol" labelFunction="valueColFunc" headerText="Value:" wordWrap="true" /&gt;
            &lt;!--mx:DataGridColumn id="valueCol" dataField="@value" headerText="Value:" wordWrap="true" /--&gt;
        &lt;/mx:columns&gt;
    &lt;/mx:DataGrid&gt;

    &lt;mx:ApplicationControlBar&gt;
        &lt;mx:Text width="500"&gt;
            &lt;mx:htmlText&gt;&amp;lt;b&amp;gt;Capabilities.serverString:&amp;lt;/b&amp;gt;&ampllt;br /&amp;gt;{Capabilities.serverString}&lt;/mx:htmlText&gt;
        &lt;/mx:Text&gt;
    &lt;/mx:ApplicationControlBar&gt;

&lt;/mx:Application&gt;
</pre>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/System_Capabilities_test/capabilities.xml">View capabilities.xml</a></p>
<pre class="code" language="xml">
&lt;capabilities&gt;
    &lt;property name="avHardwareDisable" serverString="AVD" value="{Capabilities.avHardwareDisable}" /&gt;
    &lt;property name="hasAccessibility" serverString="ACC" value="{Capabilities.hasAccessibility}" /&gt;
    &lt;property name="hasAudio" serverString="A" value="{Capabilities.hasAudio}" /&gt;
    &lt;property name="hasAudioEncoder" serverString="AE" value="{Capabilities.hasAudioEncoder}" /&gt;
    &lt;property name="hasEmbeddedVideo" serverString="EV" value="{Capabilities.hasEmbeddedVideo}" /&gt;
    &lt;property name="hasIME" serverString="IME" value="{Capabilities.hasIME}" /&gt;
    &lt;property name="hasMP3" serverString="MP3" value="{Capabilities.hasMP3}" /&gt;
    &lt;property name="hasPrinting" serverString="PR" value="{Capabilities.hasPrinting}" /&gt;
    &lt;property name="hasScreenBroadcast" serverString="SB" value="{Capabilities.hasScreenBroadcast}" /&gt;
    &lt;property name="hasScreenPlayback" serverString="SP" value="{Capabilities.hasScreenPlayback}" /&gt;
    &lt;property name="hasStreamingAudio" serverString="SA" value="{Capabilities.hasStreamingAudio}" /&gt;
    &lt;property name="hasStreamingVideo" serverString="SV" value="{Capabilities.hasStreamingVideo}" /&gt;
    &lt;property name="hasTLS" serverString="TLS" value="{Capabilities.hasTLS}" /&gt;
    &lt;property name="hasVideoEncoder" serverString="VE" value="{Capabilities.hasVideoEncoder}" /&gt;
    &lt;property name="isDebugger" serverString="DEB" value="{Capabilities.isDebugger}" /&gt;
    &lt;property name="language" serverString="L" value="{Capabilities.language}" /&gt;
    &lt;property name="localFileReadDisable" serverString="LFD" value="{Capabilities.localFileReadDisable}" /&gt;
    &lt;property name="manufacturer" serverString="M" value="{Capabilities.manufacturer}" /&gt;
    &lt;property name="os" serverString="OS" value="{Capabilities.os}" /&gt;
    &lt;property name="pixelAspectRatio" serverString="AR" value="{Capabilities.pixelAspectRatio}" /&gt;
    &lt;property name="playerType" serverString="PT" value="{Capabilities.playerType}" /&gt;
    &lt;property name="screenColor" serverString="COL" value="{Capabilities.screenColor}" /&gt;
    &lt;property name="screenDPI" serverString="DP" value="{Capabilities.screenDPI}" /&gt;
    &lt;property name="screenResolutionX" serverString="R" value="{Capabilities.screenResolutionX}" /&gt;
    &lt;property name="screenResolutionY" serverString="R" value="{Capabilities.screenResolutionY}" /&gt;
    &lt;property name="serverString" serverString="" value="{Capabilities.serverString}" /&gt;
    &lt;property name="version" serverString="V" value="{Capabilities.version}" /&gt;
&lt;/capabilities&gt;
</pre>
<p class="information">View source is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/System_Capabilities_test/bin/main.html" width="100%" height="500"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Checking the user\&#039;s Flash Player capabilities using the flash.system.Capabilities class on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/08/08/checking-the-users-flash-player-capabilities-using-the-flashsystemcapabilities-class/',contentID: 'post-68',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'isDebugger,serverString,version',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/08/08/checking-the-users-flash-player-capabilities-using-the-flashsystemcapabilities-class/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

