Posts Tagged ‘ object ’

XML to Object

The Project i have created converts the XML into required object in simple steps. Have a look on it : XSLT

Debug Flash Player Capabilities

The below code debugs the capabilities of system, might be useful for debugging.

<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”; layout=”horizontal”
import flash.system.Capabilities;
import mx.utils.ObjectUtil;
private function init() : void
var _capObj:Array = new Array();
capability.dataProvider = objectToArray(Capabilities);
private function objectToArray(cap:Class) : Array
var capObj:Object = ObjectUtil.getClassInfo(cap);
var _capArr:Array = new Array();
for each (var _capPropObj:Object in
if (_capPropObj.localName != “prototype”)
var capProp:Object = new Object();
capProp.Capability = _capPropObj.localName;
capProp.Value =Capabilities[capProp.Capability]
return _capArr;
<mx:DataGrid id=”capability” width=”100%” height=”100%” />