<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Armindo Cachada&#039;s Blog: Struts 2, Adobe Flex and ATG &#187; flex 3</title>
	<atom:link href="http://www.spltech.co.uk/blog/tag/flex-3/feed" rel="self" type="application/rss+xml" />
	<link>http://www.spltech.co.uk/blog</link>
	<description>In this blog I talk about Struts 2, Adobe Flex, JBOSS, ATG and other technologies.</description>
	<lastBuildDate>Sun, 14 Feb 2010 15:33:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adding Drag and Drag functionality in Adobe Air</title>
		<link>http://www.spltech.co.uk/blog/adobe-flex/ui/adding-drag-and-drag-functionality-in-adobe-air</link>
		<comments>http://www.spltech.co.uk/blog/adobe-flex/ui/adding-drag-and-drag-functionality-in-adobe-air#comments</comments>
		<pubDate>Wed, 09 Sep 2009 16:18:34 +0000</pubDate>
		<dc:creator>Armindo Cachada</dc:creator>
				<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[drag and drop]]></category>
		<category><![CDATA[flex 3]]></category>

		<guid isPermaLink="false">http://www.spltech.co.uk/blog/?p=95</guid>
		<description><![CDATA[In this tutorial I will teach you step by step how to use the out of the box drag &#038; drop functionality provided by flex list controls.

Just some basic theory before we go into code. The drag &#038; drop process has three stages – initiation, dragging and dropping.

The initiation is when the user clicks on a flex component and keeps the button pressed. In this case the component that the user clicks on is the drag initiator. Any flex component that supports dragging will handle either the mouseDown() or mouseMove() event to initiate the drag &#038; drop operation. The event handler will then create a DragSource object which contains data related to the object being dragged. For example if you are dragging a file between two components, the DragSource object will contain a reference to a File object. Once the DragSource is constructed the DragManager.doDrag() method is called where the first argument is a reference to the object that initiated the drag, the second argument is the DragSource object and the third argument is a reference to the mouse event that called the event handler. There is a fourth optional argument that allows to specify a drag proxy that may be used to represent the object being dragged on the screen(e.g. a semi-transparent version of the drag initiator)

In the Dragging stage the user moves the flex component across the screen up to the drop target. If you specify a drag proxy image, that is what is shown on the screen when dragging the component. If not specified a rectangle will be shown instead.

In the dropping stage when the component being dragged arrives to a potential drop target, a dragEnter event is raised. The event handler that handles this event should check whether the DragSource object contains data that is of an acceptable format.  If that’s the case then DragManager.acceptDragDrop() is called indicating that the drop target is happy in accepting the dragged data.]]></description>
		<wfw:commentRss>http://www.spltech.co.uk/blog/adobe-flex/ui/adding-drag-and-drag-functionality-in-adobe-air/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The DisplayObject Blend Mode</title>
		<link>http://www.spltech.co.uk/blog/adobe-flex/ui/the-displayobject-blend-mode</link>
		<comments>http://www.spltech.co.uk/blog/adobe-flex/ui/the-displayobject-blend-mode#comments</comments>
		<pubDate>Mon, 31 Aug 2009 12:23:58 +0000</pubDate>
		<dc:creator>Armindo Cachada</dc:creator>
				<category><![CDATA[UI]]></category>
		<category><![CDATA[blendMode]]></category>
		<category><![CDATA[DisplayObject]]></category>
		<category><![CDATA[flex 3]]></category>

		<guid isPermaLink="false">http://www.spltech.co.uk/blog/?p=49</guid>
		<description><![CDATA[The blend mode controls what happens when one display object is on top of another. The default setting in Adobe Flex is that the pixels of a display object override those that are displayed in the background. However you can change this behavior by modifying the blendMode setting. Read the language reference entry for DisplayObject. [...]]]></description>
		<wfw:commentRss>http://www.spltech.co.uk/blog/adobe-flex/ui/the-displayobject-blend-mode/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrate Adobe Flex and JBOSS using BlazeDS &#8211; Part II</title>
		<link>http://www.spltech.co.uk/blog/jboss/integrate-adobe-flex-and-jboss-using-blazeds-part-ii</link>
		<comments>http://www.spltech.co.uk/blog/jboss/integrate-adobe-flex-and-jboss-using-blazeds-part-ii#comments</comments>
		<pubDate>Mon, 31 Aug 2009 12:22:45 +0000</pubDate>
		<dc:creator>Armindo Cachada</dc:creator>
				<category><![CDATA[Data Services]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[JBOSS]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[BlazeDS]]></category>
		<category><![CDATA[EJB]]></category>
		<category><![CDATA[EJB 3]]></category>
		<category><![CDATA[flex 3]]></category>

		<guid isPermaLink="false">http://www.spltech.co.uk/blog/?p=47</guid>
		<description><![CDATA[In the first part of this tutorial I showed you an example on how to integrate flex with JBOSS using BlazeDS. In this example we used RemoteObject in Actionscript to create a new instance of uk.co.spltech.remote.RemoteService and call the callMe() method remotely. The method returned a list of strings that we used to populate a [...]]]></description>
		<wfw:commentRss>http://www.spltech.co.uk/blog/jboss/integrate-adobe-flex-and-jboss-using-blazeds-part-ii/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to use verticalCenter and horizontalCenter in a container with absolute layout</title>
		<link>http://www.spltech.co.uk/blog/adobe-flex/ui/how-to-use-verticalcenter-and-horizontalcenter-in-a-container-with-absolute-layout</link>
		<comments>http://www.spltech.co.uk/blog/adobe-flex/ui/how-to-use-verticalcenter-and-horizontalcenter-in-a-container-with-absolute-layout#comments</comments>
		<pubDate>Mon, 31 Aug 2009 12:19:38 +0000</pubDate>
		<dc:creator>Armindo Cachada</dc:creator>
				<category><![CDATA[UI]]></category>
		<category><![CDATA[absolute]]></category>
		<category><![CDATA[constraint]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[horizontalCenter]]></category>
		<category><![CDATA[verticalCenter]]></category>

		<guid isPermaLink="false">http://www.spltech.co.uk/blog/?p=43</guid>
		<description><![CDATA[In this tutorial I will explain how you can use the verticalCenter and horizontalCenter constraints in a container with absolute layout.
At this stage you probably already figured out how to use the left, right, top, bottom constraints. But what about horizontalCenter and verticalCenter?
horizontalCenter is the distance from the center of the container in the horizontal [...]]]></description>
		<wfw:commentRss>http://www.spltech.co.uk/blog/adobe-flex/ui/how-to-use-verticalcenter-and-horizontalcenter-in-a-container-with-absolute-layout/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a combo box to a DataGrid with automatic sorting</title>
		<link>http://www.spltech.co.uk/blog/adobe-flex/client-data/add-a-combo-box-to-a-datagrid-with-automatic-sorting</link>
		<comments>http://www.spltech.co.uk/blog/adobe-flex/client-data/add-a-combo-box-to-a-datagrid-with-automatic-sorting#comments</comments>
		<pubDate>Mon, 31 Aug 2009 12:13:39 +0000</pubDate>
		<dc:creator>Armindo Cachada</dc:creator>
				<category><![CDATA[Client Data]]></category>
		<category><![CDATA[DataGrid]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[inline item editor]]></category>
		<category><![CDATA[item editor]]></category>
		<category><![CDATA[SortField]]></category>

		<guid isPermaLink="false">http://www.spltech.co.uk/blog/?p=37</guid>
		<description><![CDATA[Here I am posting a solution for a problem I had to solve for one of my projects. I needed to add a combo box to one of the columns in a DataGrid. Not only that, based on the value of the combo box, the elements in the DataGrid should re-order.
To add the combo box [...]]]></description>
		<wfw:commentRss>http://www.spltech.co.uk/blog/adobe-flex/client-data/add-a-combo-box-to-a-datagrid-with-automatic-sorting/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Flex with Struts 2 using HttpService</title>
		<link>http://www.spltech.co.uk/blog/struts-2/adobe-flex-with-struts-2-using-httpservice</link>
		<comments>http://www.spltech.co.uk/blog/struts-2/adobe-flex-with-struts-2-using-httpservice#comments</comments>
		<pubDate>Mon, 31 Aug 2009 12:10:15 +0000</pubDate>
		<dc:creator>Armindo Cachada</dc:creator>
				<category><![CDATA[Integration]]></category>
		<category><![CDATA[Struts 2]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[HttpService]]></category>
		<category><![CDATA[struts+flex]]></category>
		<category><![CDATA[struts2+flex]]></category>

		<guid isPermaLink="false">http://www.spltech.co.uk/blog/?p=33</guid>
		<description><![CDATA[Using HttpService is the easiest way in which you can integrate Adobe Flex and Struts 2. As an example I will show you how you can create a registration form in Adobe Flex which calls a struts 2 action to create new users. Note that this example is very simple and for demonstration purposes. I [...]]]></description>
		<wfw:commentRss>http://www.spltech.co.uk/blog/struts-2/adobe-flex-with-struts-2-using-httpservice/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sorting an ArrayCollection using SortField</title>
		<link>http://www.spltech.co.uk/blog/adobe-flex/client-data/sorting-an-arraycollection-using-sortfield</link>
		<comments>http://www.spltech.co.uk/blog/adobe-flex/client-data/sorting-an-arraycollection-using-sortfield#comments</comments>
		<pubDate>Mon, 31 Aug 2009 12:05:32 +0000</pubDate>
		<dc:creator>Armindo Cachada</dc:creator>
				<category><![CDATA[Client Data]]></category>
		<category><![CDATA[ArrayCollection]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[SortField]]></category>

		<guid isPermaLink="false">http://www.spltech.co.uk/blog/?p=27</guid>
		<description><![CDATA[You can use ArrayCollection and SortField to sort a list of items based on one or more fields:

this.names= new ArrayCollection();
names.addItem({first:&#34;John&#34;,last:&#34;Travolta&#34;});
names.addItem({first:&#34;Miguel&#34;,last:&#34;Nunes&#34;});
    names.addItem({first:&#34;Christina&#34;,last:&#34;Aguilera&#34;});
names.addItem({first:&#34;Michael&#34;,last:&#34;Jackson&#34;});
var sort:Sort= new Sort();
sort.fields=[new SortField(&#34;last&#34;,true,true), new SortField(&#34;first&#34;,true,true)];
names.sort=sort;
names.refresh();

You can try the adobe flex example here. View source is enabled.





]]></description>
		<wfw:commentRss>http://www.spltech.co.uk/blog/adobe-flex/client-data/sorting-an-arraycollection-using-sortfield/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uploading a file with Flex 3 and Struts 2</title>
		<link>http://www.spltech.co.uk/blog/struts-2/uploading-a-file-with-flex-3-and-struts-2</link>
		<comments>http://www.spltech.co.uk/blog/struts-2/uploading-a-file-with-flex-3-and-struts-2#comments</comments>
		<pubDate>Mon, 31 Aug 2009 11:52:49 +0000</pubDate>
		<dc:creator>Armindo Cachada</dc:creator>
				<category><![CDATA[Integration]]></category>
		<category><![CDATA[Struts 2]]></category>
		<category><![CDATA[file upload]]></category>
		<category><![CDATA[FileReference]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[struts 2.1]]></category>

		<guid isPermaLink="false">http://www.spltech.co.uk/blog/?p=24</guid>
		<description><![CDATA[In my previous post I taught you how to upload a file using Struts 2. In the example I gave you, both the presentation layer and the code that received the file were done in Struts 2.
But what if you want to upload a file via Adobe Flex? How can you do it?
The FileReference flex [...]]]></description>
		<wfw:commentRss>http://www.spltech.co.uk/blog/struts-2/uploading-a-file-with-flex-3-and-struts-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding an event listener function with arguments using Actionscript</title>
		<link>http://www.spltech.co.uk/blog/adobe-flex/events/adding-an-event-listener-function-with-arguments-using-actionscript</link>
		<comments>http://www.spltech.co.uk/blog/adobe-flex/events/adding-an-event-listener-function-with-arguments-using-actionscript#comments</comments>
		<pubDate>Mon, 31 Aug 2009 11:42:52 +0000</pubDate>
		<dc:creator>Armindo Cachada</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[event listener]]></category>
		<category><![CDATA[flex 3]]></category>

		<guid isPermaLink="false">http://www.spltech.co.uk/blog/?p=17</guid>
		<description><![CDATA[This might come handy whenever you can&#8217;t use directly mxml and you need to add an event listener function that needs one or more arguments.

&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;absolute&#34; creationComplete=&#34;myInitialize()&#34;&#62;
 &#60;mx:Script&#62;
  &#60;![CDATA[
   import mx.controls.Alert;

      private function myFunction(arg:String):void {
       mx.controls.Alert.show(&#34;Received call with [...]]]></description>
		<wfw:commentRss>http://www.spltech.co.uk/blog/adobe-flex/events/adding-an-event-listener-function-with-arguments-using-actionscript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
