Archive | RIA

19 November 2008 ~ 1 Comment

VO to XML converter

The following code converts a value object to an XML
private function convertToXML():void
{
var product:ProductVO = new ProductVO();
product.id = 12;
product.name = ‘test product’;
product.description = ‘test desc’;
product.price = 100;
product.thumbnail = ‘image1.jpg’;
var xmlProduct:XML = voToXml(product, ‘product’);
}
private static function voToXml(vo:Object, qName:String):XML
{
var qn:QName = new QName(qName);
var xmlDocument:XMLDocument = new XMLDocument();
var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument);
var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(vo, qn, xmlDocument);
var xml:XML = [...]

Continue Reading

Tags: , , ,

31 October 2008 ~ 4 Comments

Vista Remix flex theme - My scalenine contest entry

My scalenine contest entry Vista Remix theme is listed on the scalenine gallery. Congrats to the winners of the contest. Brownie rocks!!. Many thanks to Juan Sanchez, Adobe and EffectiveUI
Download
UPDATE : You can download the flash source file from this link

Continue Reading

Tags: , , , ,

10 August 2008 ~ 2 Comments

Multiselect ColorPicker

This is a custom color picker component to show and select multiple colors. You can use the ’selectedColors’ property to set and get color values. When you select a color it will be added to the selectedColors property. There is a ‘-’ button on roll over to remove a color.

Try a demo here: Multiselect ColorPicker [...]

Continue Reading

10 July 2008 ~ 0 Comments

Fullscreen Flex Preloader

This is a flex custom preloader made by extending the DownloadProgressBar class in the flex framework. The progress bar is a fullscreen sprite with a customizable color. You can also change the position and styles of the percentage textfield. See the below code to customize the preloader.
// Progress bar color
protected var barColor:uint = 0xE8D385;
/**
* [...]

Continue Reading