@font-face {

font-family: “scFont”;

src: url(“assets/fonts/mriam.ttf”);

embedAsCff: true;


mx|Alert, mx|Button, mx|Form,mx|FormItem, mx|FormItemLabel{

font-family: scFont;

textFieldClass: ClassReference(“mx.core.UIFTETextField”);


mx|DateField {

font-family: Tahoma;

textInputClass: ClassReference(“mx.controls.MXFTETextInput”);

textFieldClass: ClassReference(“mx.core.UIFTETextField”);


mx|Label {

textFieldClass: ClassReference(“mx.core.UIFTETextField”);



a powerful software utility that helps you make easy conversion between more than 2,100 various units of measure in more than 70 categories


addEventListener(MouseEvent.CLICK, function(e:MouseEvent){onClickEvent(e,”Argument”)});


import mx.rpc.xml.SimpleXMLEncoder;

import mx.utils.ObjectUtil;


            private function init():void {

                var xml:XML = objectToXML(arrColl.source);



            private function objectToXML(obj:Object):XML {

//Creates a QName object with a URI from a Namespace object and a localName from a QName object.

                var qName:QName = new QName(“root”);

                var xmlDocument:XMLDocument = new XMLDocument();

                var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument);

                var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument);

                var xml:XML = new XML(xmlDocument.toString());      

                return xml;


 Most of the time we are facing difficulties in using the xml in data transfer object. So here is my simple solution for this problem. We can easily conver the xml into object with the use of simpleXMLDecoder. The only thing we have to do is just convert the xmlString into XMLDocument and pass this xmlDocument into the simpleXMLDecoder.

Here is how its works:    
 private function xmlConverter(xml:XML):ArrayCollection{                 
      var xmlStr:String = xml.toString();
      var xmlDoc:XMLDocument = new XMLDocument(xmlStr);
      var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
      var resultObj:Object = decoder.decodeXML(xmlDoc);
      var ac:ArrayCollectin = new ArrayCollection();
      ac =  resultObj.Items.Item;
      return ac;