<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.2" -->
<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">
	<channel>
		<title>Starling Forum &#187; Topic: TouchPhase.ENDED is not captured if the TouchPhase.BEGIN started on another obj</title>
		<link>http://forum.starling-framework.org/topic/touchphaseended-is-not-captured-if-the-touchphasebegin-started-on-another-obj</link>
		<description>The Starling Framework Community</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 09:03:41 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forum.starling-framework.org/search.php</link>
		</textInput>
		<atom:link href="http://forum.starling-framework.org/rss/topic/touchphaseended-is-not-captured-if-the-touchphasebegin-started-on-another-obj" rel="self" type="application/rss+xml" />

		<item>
			<title>Josh Tynjala on "TouchPhase.ENDED is not captured if the TouchPhase.BEGIN started on another obj"</title>
			<link>http://forum.starling-framework.org/topic/touchphaseended-is-not-captured-if-the-touchphasebegin-started-on-another-obj#post-9889</link>
			<pubDate>Tue, 07 Aug 2012 21:51:22 +0000</pubDate>
			<dc:creator>Josh Tynjala</dc:creator>
			<guid isPermaLink="false">9889@http://forum.starling-framework.org/</guid>
			<description><p>Yes, Starling touch events work a little bit differently than the native display list. Sometimes, you'll need to tweak your code a bit to do the same thing in Starling. Sometimes, things are easier. Sometimes, they're a little trickier.</p>
<p>Listen for the touch event on the common parent shared by the object that you want to begin the touch on and the other object where you want to end the touch. It sounds like this might be the parent of your "piece tray" and your "GameBoard". Inside the touch listener, you can use a call to hitTest() or use a some simple math (assuming we're working with a grid) to determine which child is under the touch during the began and ended phases.
</p></description>
		</item>
		<item>
			<title>nuthman on "TouchPhase.ENDED is not captured if the TouchPhase.BEGIN started on another obj"</title>
			<link>http://forum.starling-framework.org/topic/touchphaseended-is-not-captured-if-the-touchphasebegin-started-on-another-obj#post-9885</link>
			<pubDate>Tue, 07 Aug 2012 21:17:54 +0000</pubDate>
			<dc:creator>nuthman</dc:creator>
			<guid isPermaLink="false">9885@http://forum.starling-framework.org/</guid>
			<description><p>It may be that I have previously had a bad workflow, but let me explain.</p>
<p>I make a lot of puzzle grid based games where you pick up a piece from a tray, and drop it into a grid based game board. </p>
<p>I'm having trouble repeating my previous methods using Starling. for example:</p>
<p>there is a piece in the piece tray. lets call it piece:</p>
<p>piece.addEventListener(MouseEvent.MOUSE_DOWN, pickupPiece);</p>
<p>on the GameBoard object, each gridspace has this:</p>
<p>gridCell.addEventListenr(MouseEvent.MOUSE_UP, receivePiece);</p>
<p>...Very simple. However, this doesn't work in Starling because it seems that if the mouse is down already, (TouchPhase.BEGIN), then no release (TouchPhase.ENDED) can trigger on any other displayobject in the game.</p>
<p>Does this make sense? I'm not sure of how to cleanly detect that the mouse has released on this.gridCell.... I'm trying to keep it clean and modular. Any ideas?
</p></description>
		</item>

	</channel>
</rss>
