Archive for March 4th, 2008

04
Mar

Converting objects to XML packets using the SimpleXMLEncoder class in Flex

In a previous example, “Converting XML to objects using the Flex SimpleXMLDecoder class”, we saw how to convert an XML instance into an Object instance using the SimpleXMLDecoder class and decodeXML() method.

The following example shows how you can convert an array of objects into an XML object using the SimpleXMLEncoder class and encodeValue() method in Flex.

Full code after the jump.

Continue reading ‘Converting objects to XML packets using the SimpleXMLEncoder class in Flex’

04
Mar

Dynamically adding new columns to a DataGrid control in Flex

The following example shows how you can dynamically add new columns to a Flex DataGrid control by setting the columns property.

Full code after the jump.

Continue reading ‘Dynamically adding new columns to a DataGrid control in Flex’