<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Drag-and-Drop in Flex 4</title>
	<atom:link href="http://saturnboy.com/2009/08/drag-and-drop-flex-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://saturnboy.com/2009/08/drag-and-drop-flex-4/</link>
	<description>Code, Work, and Life</description>
	<lastBuildDate>Thu, 10 May 2012 17:13:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: lu</title>
		<link>http://saturnboy.com/2009/08/drag-and-drop-flex-4/comment-page-1/#comment-345</link>
		<dc:creator>lu</dc:creator>
		<pubDate>Mon, 31 Oct 2011 13:40:03 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=672#comment-345</guid>
		<description>I want to add a text in a List on position X, anybody know how to do it?</description>
		<content:encoded><![CDATA[<p>I want to add a text in a List on position X, anybody know how to do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fox</title>
		<link>http://saturnboy.com/2009/08/drag-and-drop-flex-4/comment-page-1/#comment-330</link>
		<dc:creator>fox</dc:creator>
		<pubDate>Thu, 22 Sep 2011 05:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=672#comment-330</guid>
		<description>found in your follow up post, &lt;a href=&quot;http://saturnboy.com/2010/12/drag-and-drop-revisited/&quot; rel=&quot;nofollow&quot;&gt;Drag-and-Drop Revisited&lt;/a&gt;, thank you very much!!!</description>
		<content:encoded><![CDATA[<p>found in your follow up post, <a href="http://saturnboy.com/2010/12/drag-and-drop-revisited/" rel="nofollow">Drag-and-Drop Revisited</a>, thank you very much!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fox</title>
		<link>http://saturnboy.com/2009/08/drag-and-drop-flex-4/comment-page-1/#comment-329</link>
		<dc:creator>fox</dc:creator>
		<pubDate>Thu, 22 Sep 2011 05:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=672#comment-329</guid>
		<description>How could we use this to sort or reorder a list? At the moment the dragged items ar always added as last item. How could we add a drag target indicator?</description>
		<content:encoded><![CDATA[<p>How could we use this to sort or reorder a list? At the moment the dragged items ar always added as last item. How could we add a drag target indicator?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin</title>
		<link>http://saturnboy.com/2009/08/drag-and-drop-flex-4/comment-page-1/#comment-312</link>
		<dc:creator>justin</dc:creator>
		<pubDate>Mon, 08 Aug 2011 16:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=672#comment-312</guid>
		<description>@Alek: you just need some way to track state, then a reset button could revert everything back to the saved state.

For a simple impl, I&#039;d probably use a hash of arrays, like this:

&lt;pre lang=&quot;as3&quot;&gt;
_saved = { colA:[0,1,2], colB:[3] };
&lt;/pre&gt; 

Then a reset button would just walk the hash and make each column match the saved state.</description>
		<content:encoded><![CDATA[<p>@Alek: you just need some way to track state, then a reset button could revert everything back to the saved state.</p>
<p>For a simple impl, I&#8217;d probably use a hash of arrays, like this:</p>

<div class="wp_syntax"><div class="code"><pre class="as3" style="font-family:monospace;">_saved = { colA:[0,1,2], colB:[3] };</pre></div></div>

<p>Then a reset button would just walk the hash and make each column match the saved state.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alek</title>
		<link>http://saturnboy.com/2009/08/drag-and-drop-flex-4/comment-page-1/#comment-311</link>
		<dc:creator>Alek</dc:creator>
		<pubDate>Mon, 08 Aug 2011 15:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=672#comment-311</guid>
		<description>i am curious how you would go about using a reset button with this example</description>
		<content:encoded><![CDATA[<p>i am curious how you would go about using a reset button with this example</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin</title>
		<link>http://saturnboy.com/2009/08/drag-and-drop-flex-4/comment-page-1/#comment-298</link>
		<dc:creator>justin</dc:creator>
		<pubDate>Thu, 09 Jun 2011 19:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=672#comment-298</guid>
		<description>@Steve: You are off in custom world...but it is probably not too bad.

In &lt;code&gt;mouseDownHandler()&lt;/code&gt; on the object you are dragging you&#039;ll need to figure out the bounds of the object relative to the mouse.  Then in your &lt;code&gt;dragEnterHandler()&lt;/code&gt; on the target, don&#039;t call &lt;code&gt;acceptDragDrop()&lt;code&gt;, instead you&#039;ll need to use a &lt;code&gt;mouseMove()&lt;/code&gt; handler (probably on the stage) to accept only when the object completely inside your drop target container.

Good luck.</description>
		<content:encoded><![CDATA[<p>@Steve: You are off in custom world&#8230;but it is probably not too bad.</p>
<p>In <code>mouseDownHandler()</code> on the object you are dragging you&#8217;ll need to figure out the bounds of the object relative to the mouse.  Then in your <code>dragEnterHandler()</code> on the target, don&#8217;t call <code>acceptDragDrop()</code><code>, instead you'll need to use a </code><code>mouseMove()</code> handler (probably on the stage) to accept only when the object completely inside your drop target container.</p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://saturnboy.com/2009/08/drag-and-drop-flex-4/comment-page-1/#comment-297</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 09 Jun 2011 19:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=672#comment-297</guid>
		<description>Any easy way to detect if the whole image is over the drop container instead of the mouse cursor?

For instance, if I click on the middle of the square, once my mouse cursor is over the target, Flex accepts it even though the entire image of the square isn&#039;t over the target.</description>
		<content:encoded><![CDATA[<p>Any easy way to detect if the whole image is over the drop container instead of the mouse cursor?</p>
<p>For instance, if I click on the middle of the square, once my mouse cursor is over the target, Flex accepts it even though the entire image of the square isn&#8217;t over the target.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin</title>
		<link>http://saturnboy.com/2009/08/drag-and-drop-flex-4/comment-page-1/#comment-281</link>
		<dc:creator>justin</dc:creator>
		<pubDate>Mon, 18 Apr 2011 15:23:08 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=672#comment-281</guid>
		<description>@vasu:  The short answer is you can use the events &lt;code&gt;mouseDown&lt;/code&gt;, &lt;code&gt;dragEnter&lt;/code&gt;, &lt;code&gt;dragDrop&lt;/code&gt; to do whatever you want.

The long answer is it&#039;s not gonna be easy.  Depending on how tightly you want to control the UI, you might need to create a completely custom d&amp;d impl.</description>
		<content:encoded><![CDATA[<p>@vasu:  The short answer is you can use the events <code>mouseDown</code>, <code>dragEnter</code>, <code>dragDrop</code> to do whatever you want.</p>
<p>The long answer is it&#8217;s not gonna be easy.  Depending on how tightly you want to control the UI, you might need to create a completely custom d&#038;d impl.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vasu</title>
		<link>http://saturnboy.com/2009/08/drag-and-drop-flex-4/comment-page-1/#comment-280</link>
		<dc:creator>vasu</dc:creator>
		<pubDate>Mon, 18 Apr 2011 06:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=672#comment-280</guid>
		<description>is it possible to add easing effects?</description>
		<content:encoded><![CDATA[<p>is it possible to add easing effects?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel McQuillen</title>
		<link>http://saturnboy.com/2009/08/drag-and-drop-flex-4/comment-page-1/#comment-219</link>
		<dc:creator>Daniel McQuillen</dc:creator>
		<pubDate>Wed, 01 Dec 2010 23:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=672#comment-219</guid>
		<description>I&#039;m trying to use a Flex 4 list as a component to drag stuff from, but only for the visual effect (I have some code that handles the business logic of a drop). However, the list item dragged disappears after a drop, even though I&#039;m not doing anything with it. Any insight into why this might happen?

Thanks for any thoughts, Justin. As always, thanks for the great posts.</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to use a Flex 4 list as a component to drag stuff from, but only for the visual effect (I have some code that handles the business logic of a drop). However, the list item dragged disappears after a drop, even though I&#8217;m not doing anything with it. Any insight into why this might happen?</p>
<p>Thanks for any thoughts, Justin. As always, thanks for the great posts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

