Archives for categorie "Components"
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

Version 1.1.5 of PhotoInBlog, el plug-in para Wordpress plug-in and Joomla which show user’s picture in your blog.

This version fix the problem with camera in computers without webcam.

  • 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

Component to automatic adjust of LinkButton to resize the button to the container with reference ref or as parent.

<?xml version="1.0" encoding="utf-8"?>
<mx:LinkButton xmlns:mx="http://www.adobe.com/2006/mxml"
			   initialize="onInitialize()"
			   creationComplete="onCreationComplete()"
			   resize="onResize()">
	<mx:Script>
		<![CDATA[
			import mx.core.Container;

			[Bindable]
			public var ref:Container;

			private function onInitialize():void {
				width=0;
			}

			private function onCreationComplete():void {
				if (ref!=null) {
					ref.addEventListener('resize',function():void {onResize()});
				} else {
					parent.addEventListener('resize',function():void {onResize()});
				}
			}

			private function onResize():void {
				if (ref!=null) {
					width=ref.width;
				} else {
					width=parent.width;
				}
			}

		]]>
	</mx:Script>
</mx:LinkButton>
  • Share/Bookmark

Fixed bug with selectAll item in component ComboCheck.

Thank you Miral for the comment!

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