Archives for categorie "Flex"

Example of itemRenderer which update data automatically within a DataGrid:

Source codeClick with the right button to obtain source code.

  • Share/Bookmark

Integration example of Spring and BlazeDS with Maven2.

Multiproject EAR:
- Flex 4
- Spring 3
- BlazeDS 3




  • Share/Bookmark
Aug
8
Arcadio 1 comment

Component update of ComboCheck 1.3 adapted to version of Flex 4:

Source codeClick with the right button to obtain source code.

  • Share/Bookmark

For Eclipse to regcognize projects with Flex nature you need to edit .project file and make sure that the flex natures are the first in the list:

<natures>
	<nature>com.adobe.flexbuilder.project.flexnature</nature>
	<nature>com.adobe.flexbuilder.project.actionscriptnature</nature>
	<nature>org.eclipse.jdt.core.javanature</nature>
	<nature>org.maven.ide.eclipse.maven2Nature</nature>
	<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
	<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
</natures>
  • Share/Bookmark

Sometimes objects in a Flex DataGrid are more complex and we need to show other property level. There is an example of a renderer that allow to point the property to show and its level in the object.

private var items:ArrayCollection = new ArrayCollection ([
{
	name:'Name 1',
	level: {
		level1:{label:'Level 1-1', value:101},
		level1:{label:'Level 1-2', value:201}
	}
},
{
	name:'Name 2',
	level: {
		level1:{label:'Level 2-1', value:102},
		level1:{label:'Level 2-2', value:202}
	}
}
]);

[...]
<mx:DataGridColumn dataField="level.level1.label" headerText="Level"/>

Source codeClick with the right button to obtain source code.

  • 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.