Detecting Flash Player capabilities using describeType()

I found this article from unknown blog. A poster of the article said that he found a solid bug in functionality on flash.system.Capabilities on AS3 and gave solution also. I have pasted the same below,

var flashPlayerData:Array = new Array();
var objectType:XML = describeType(flash.system.Capabilities);
var excludedProperties:Array = [“_internal”, “serverString”, “prototype”];

for each(var objectProperties:XML in objectType.accessor){
var propertyName:String = objectProperties.@name;
var isExcluded:Boolean = false;

for(var c:uint = 0; c < excludedProperties.length; c++){
var excludedName:String = excludedProperties[c];
if(propertyName == excludedName){
isExcluded = true;

var propertyValue:String = flash.system.Capabilities[propertyName];
flashPlayerData.push({name: propertyName, value: propertyValue});

flashPlayerData.sortOn(“name”, Array.CASEINSENSITIVE);


About Saran

Hello there!!! I'm Saravanan, born and living in India. The main reason i decided to start this project it was because there should be a way to transfer my knowledge which i experimented in flash to all. i try to concentrate as much as possible all kind of issues can appear to someone is developing an Flash application. If you need help, or if you would like to see in this blog some issues, send me an e-mail to Follow Me: twitter: Best Regards, SRK
This entry was posted in AS3. Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s