Archive | Actionscript

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: , , ,

15 October 2008 ~ 0 Comments

Flash Player 10 Top Features

Â
This is a copy paste from adobe flashplayer features page
Â
3D effects New
Create more intuitive, engaging interfaces using built-in support for 3D effects. Get started quickly without being a 3D master by designing in 2D and easily transforming and animating in 3D. Fast, extremely lightweight, and simple-to-use APIs, along with 3D tools in Adobe® Flash® CS4 [...]

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