Archives of November 2009

Flex project example with BlazeDS and Eclipse.
There are many tutorials on Internet very simple:

  • Create a Flex project with J2EE nature
  • Import BlazeDS war to recreate project structure
  • Configure flex remoting config files
  • Create java services and register them in the config files
  • Create RemoteObject components in Flex client pointing to these services
  • Share/Bookmark

Amf3Output class included in BlazeDS libraries allow us a simple way to serialize objects from server to client in AMF3 format.

  • Share/Bookmark

Fixed bug with checkbox checked at dropdown in component ComboCheck.

  • Share/Bookmark

Flex ComboBox extended to implements a select by value feature:

package com.arcadiocarballares {
	import mx.controls.ComboBox;

	public class ComboBoxByValue extends ComboBox {
		private var _selectedValue:int;

	    public function SelectByValueCombo() {
	        super();
	    }

	    public function get selectedValue():int {
	    	return _selectedValue;
	    }

	    public function set selectedValue(value:int):void {
			_selectedValue = value;
			for (var i:String in dataProvider) {
				if (value == dataProvider[i].value) {
					selectedIndex = parseInt(i);
					break;
				}
			}
	    }
	}
}
  • Share/Bookmark
Creative Commons License
This blog is under Creative Commons licence, unless indicated otherwise.
Special thanks to Mark James for the icon set used in this blog.