Posted in Flex4 | Leave a Comment »
Posted in Uncategorized | Leave a Comment »
Posted in Uncategorized | Leave a Comment »
a powerful software utility that helps you make easy conversion between more than 2,100 various units of measure in more than 70 categories
Posted in Other | Leave a Comment »
addEventListener(MouseEvent.CLICK, function(e:MouseEvent){onClickEvent(e,”Argument”)});
Posted in AS 3.0 | Leave a Comment »
http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.html
Posted in Uncategorized | Leave a Comment »
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;
}
Posted in AS 3.0 | Tagged Converting XML, object to xml, SimpleXMLEncoder, using the Flex SimpleXMLDecoder | Leave a Comment »
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.
Posted in AS 3.0 | Tagged as xml to object, convert XML into Object, ml to ArracyCollection, object to xml, xml converter, xml to array, xml to object in as3 | 5 Comments »
Any comparison with NaN is always false:
We can match the default value with the related data type. But in Number data type NaN(Not A Number) is the default value. But matching the NaN with Default Number value rise the “error – Ilogical comparison with NaN”.
Posted in AS 3.0 | Tagged NaN, Number | Leave a Comment »