<?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; Tag: touch - Recent Posts</title>
		<link>http://forum.starling-framework.org/tags/touch</link>
		<description>The Starling Framework Community</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 21:43:40 +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/tags/touch" rel="self" type="application/rss+xml" />

		<item>
			<title>edkeens on "Touch input causes lag"</title>
			<link>http://forum.starling-framework.org/topic/touch-input-causes-lag#post-35438</link>
			<pubDate>Fri, 14 Jun 2013 19:34:12 +0000</pubDate>
			<dc:creator>edkeens</dc:creator>
			<guid isPermaLink="false">35438@http://forum.starling-framework.org/</guid>
			<description><p>I'm not sure it's the same problem, cause swapping app doesn't help at all.<br />
Also...there's no actual delay on touch. It only causes fps drop.
</p></description>
		</item>
		<item>
			<title>alex_h on "Touch input causes lag"</title>
			<link>http://forum.starling-framework.org/topic/touch-input-causes-lag#post-35437</link>
			<pubDate>Fri, 14 Jun 2013 19:28:23 +0000</pubDate>
			<dc:creator>alex_h</dc:creator>
			<guid isPermaLink="false">35437@http://forum.starling-framework.org/</guid>
			<description><p>This is down to an Adobe Air bug:</p>
<p><a href="http://forum.starling-framework.org/topic/input-needed-touch-issues" rel="nofollow">http://forum.starling-framework.org/topic/input-needed-touch-issues</a></p>
<p>but apparently it has been fixed in AIR3.8
</p></description>
		</item>
		<item>
			<title>edkeens on "Touch input causes lag"</title>
			<link>http://forum.starling-framework.org/topic/touch-input-causes-lag#post-35436</link>
			<pubDate>Fri, 14 Jun 2013 19:14:29 +0000</pubDate>
			<dc:creator>edkeens</dc:creator>
			<guid isPermaLink="false">35436@http://forum.starling-framework.org/</guid>
			<description><p>Hello everyone,<br />
I have following problem: Everytime I use touch input in my game on Android device (haven't tried on iPhone yet and on PC no problems), it causes game to lag. This doesn't show on Starling stats (top left corner FPS/mem info), but it clearly lowers fps. When I'm not touching anything, everything runs smoothly. I've tried to set touchable to false on as many display objects as possible, but with no success.<br />
Any help would be greatly appreciated.
</p></description>
		</item>
		<item>
			<title>alex_h on "Input needed: Touch issues"</title>
			<link>http://forum.starling-framework.org/topic/input-needed-touch-issues/page/2#post-34741</link>
			<pubDate>Thu, 06 Jun 2013 16:52:16 +0000</pubDate>
			<dc:creator>alex_h</dc:creator>
			<guid isPermaLink="false">34741@http://forum.starling-framework.org/</guid>
			<description><p>The touch lag issue is apparently fixed in AIR 3.8 beta</p>
<p>see this thread:</p>
<p><a href="http://forum.starling-framework.org/topic/air-38-beta-available" rel="nofollow">http://forum.starling-framework.org/topic/air-38-beta-available</a>
</p></description>
		</item>
		<item>
			<title>KdCode on "Input needed: Touch issues"</title>
			<link>http://forum.starling-framework.org/topic/input-needed-touch-issues/page/2#post-34737</link>
			<pubDate>Thu, 06 Jun 2013 16:43:36 +0000</pubDate>
			<dc:creator>KdCode</dc:creator>
			<guid isPermaLink="false">34737@http://forum.starling-framework.org/</guid>
			<description><p>My experience: windows=no lag, ipad=no lag, galaxy tab 7 p1000: massive lag, i tried Stuv's solution and it worked like a miracle BUT it causes the game to crash some time after game is started. anyone has same problem? i tried to let the app run without touching the screen and it didnt crash. it only crashed if i touch the screen. any word of advise?
</p></description>
		</item>
		<item>
			<title>bobbylox on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-34240</link>
			<pubDate>Fri, 31 May 2013 19:03:54 +0000</pubDate>
			<dc:creator>bobbylox</dc:creator>
			<guid isPermaLink="false">34240@http://forum.starling-framework.org/</guid>
			<description><p>My issue had to do with the project setup.  I created a new project in flash builder, and dropped in all the same code, and it worked fine.  Still a mystery, but more or less resolved.
</p></description>
		</item>
		<item>
			<title>Marijn on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-34132</link>
			<pubDate>Thu, 30 May 2013 09:42:41 +0000</pubDate>
			<dc:creator>Marijn</dc:creator>
			<guid isPermaLink="false">34132@http://forum.starling-framework.org/</guid>
			<description><p>Hm thats strange indeed. I thought you had a moving sprite aswell. Seems like we might have different problems  &lt;img src=&quot;http://forum.starling-framework.org/my-plugins/bb-smilies/default/icon_smile.gif&quot; title=&quot;:)&quot; class=&quot;bb_smilies&quot; /&gt; 
</p></description>
		</item>
		<item>
			<title>bobbylox on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-34079</link>
			<pubDate>Wed, 29 May 2013 16:15:57 +0000</pubDate>
			<dc:creator>bobbylox</dc:creator>
			<guid isPermaLink="false">34079@http://forum.starling-framework.org/</guid>
			<description><p>Interesting.  The sprite I'm having a problem with isn't moving at all.
</p></description>
		</item>
		<item>
			<title>Marijn on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-34068</link>
			<pubDate>Wed, 29 May 2013 15:12:20 +0000</pubDate>
			<dc:creator>Marijn</dc:creator>
			<guid isPermaLink="false">34068@http://forum.starling-framework.org/</guid>
			<description><p>I thought it had something to do with the framerate, but no matter what framerate i run on (between 25 and 60), the issue is always there.<br />
The faster the touchable sprites move, the further the distance between the touch and the actual image. i.e.:</p>
<p>a image is moving across the screen with 20px/frame:<br />
Touching the image triggers nothing, touching 20 before it triggers a touch on the image.</p>
<p>when image is not moving, this doesn't happen. It seems that the image is already moved internally, but not yet drawn to the screen, but thats just a wild guess.
</p></description>
		</item>
		<item>
			<title>bobbylox on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-34038</link>
			<pubDate>Tue, 28 May 2013 23:55:19 +0000</pubDate>
			<dc:creator>bobbylox</dc:creator>
			<guid isPermaLink="false">34038@http://forum.starling-framework.org/</guid>
			<description><p>I'm not certain.  The showStats box doesn't seem to be working, either.
</p></description>
		</item>
		<item>
			<title>Marijn on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-33726</link>
			<pubDate>Fri, 24 May 2013 10:57:46 +0000</pubDate>
			<dc:creator>Marijn</dc:creator>
			<guid isPermaLink="false">33726@http://forum.starling-framework.org/</guid>
			<description><p>What is the framerate of your app?
</p></description>
		</item>
		<item>
			<title>bobbylox on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-33681</link>
			<pubDate>Thu, 23 May 2013 20:48:19 +0000</pubDate>
			<dc:creator>bobbylox</dc:creator>
			<guid isPermaLink="false">33681@http://forum.starling-framework.org/</guid>
			<description><p>No, sorry - this is happening for me in the Flash Builder simulator (ie Flash Player).
</p></description>
		</item>
		<item>
			<title>Marijn on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-33647</link>
			<pubDate>Thu, 23 May 2013 17:00:04 +0000</pubDate>
			<dc:creator>Marijn</dc:creator>
			<guid isPermaLink="false">33647@http://forum.starling-framework.org/</guid>
			<description><p>I just made a post with the same issue (<a href="http://forum.starling-framework.org/topic/moving-spriteimage-with-touchevent" rel="nofollow">http://forum.starling-framework.org/topic/moving-spriteimage-with-touchevent</a>). The problem seems to be mainly on android. iOS and desktop seem to handle this better.</p>
<p>Can you confirm if it's mainly Android?
</p></description>
		</item>
		<item>
			<title>Jeff on "Touch targeting issue"</title>
			<link>http://forum.starling-framework.org/topic/touch-targeting-issue#post-33532</link>
			<pubDate>Wed, 22 May 2013 18:23:13 +0000</pubDate>
			<dc:creator>Jeff</dc:creator>
			<guid isPermaLink="false">33532@http://forum.starling-framework.org/</guid>
			<description><blockquote><p>
But I still don't understand why though</p>
</blockquote>
<p>I think I see where you are getting tripped up.</p>
<p>With Starling touches, the event.target will always be the deepest Starling DisplayObject in the display list hierarchy that is touchable in the scene at that touch location, (based on calling hitTest() recursively on DisplayObjectContainer)</p>
<p>You are assuming with the Starling Button, that the Button sprite itself is the e.target. However, a Starling Button is a more complicated sprite container that contains children, a contents Sprite that might also contain a background and a text child.</p>
<p>So when you are actually getting a touch that is hitting over a Button, it is one of the Button's children that is actually e.target and not just the Button instance itself.  </p>
<p>When you write a generic touch handler like you are doing, and doing e.getTouch(game), that works fine, but you are asking for all active touches at the top-most game scene space (e.getTouch(someObject) supports bubbling so any touch on the object you pass in or any of its children will return active touches)<br />
So you have lost a bit of granularity when you want to ask the question, 'which specific object is now being touched?'</p>
<p>Many times one doesn't have to think about 'which object was touched' if instead you were adding specific touch handlers directly to only one button or any specific parent and didn't care whether it was this sprite or any of its children that were actually e.target.</p>
<p>So now you see why switching the pause button to a plain 'Image' made it work because an Image has no children, so there is no where else deeper to go with the touch than the Image itself.</p>
<p>So there are a couple ways you could still have the original button, maybe a hack but knowing your button is a parent you might be able to pull off a check like<br />
if(e.target &#38;&#38; e.target.parent &#38;&#38; e.target.parent == pauseButton)<br />
(assuming there is only one parent level up from what was touched to the button,<br />
for button you might even need e.target.parent.parent  &lt;img src=&quot;http://forum.starling-framework.org/my-plugins/bb-smilies/default/icon_sad.gif&quot; title=&quot;:(&quot; class=&quot;bb_smilies&quot; /&gt;  )</p>
<p>or a little less code and generic, you could do another repeated filter check of  touches using the pauseButton as a target<br />
inside your objectPressed handler, like<br />
if (e.getTouch(pauseButton, TouchPhase.BEGAN))</p>
<p>Finally, (more of an advanced exercise) some users find it convenient to override the default hitTest() function of DisplayObjectContainer if they are writing a deeply nested sprite with children, but still want 'this' to be the e.target for touches all the time and not any of its children. (one might have thought Starling's Button should maybe always return 'this' for its hitTest for touches but I don't think any Starling display objects do this by default).<br />
<a href="http://forum.starling-framework.org/topic/something-is-not-right#post-29208">http://forum.starling-framework.org/topic/something-is-not-right#post-29208</a>
</p></description>
		</item>
		<item>
			<title>feresr on "Touch targeting issue"</title>
			<link>http://forum.starling-framework.org/topic/touch-targeting-issue#post-33506</link>
			<pubDate>Wed, 22 May 2013 14:27:30 +0000</pubDate>
			<dc:creator>feresr</dc:creator>
			<guid isPermaLink="false">33506@http://forum.starling-framework.org/</guid>
			<description><p>I had the same issue. here's how I fixed it:</p>


<div class="bb_syntax"><div class="code"><pre class="as3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>touch<span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
      <span style="color: #009900;">//smallObjects is an array containing all relevant game objects on screen</span>
      <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>e.<span style="color: #004993;">target</span> <span style="color: #0033ff; font-weight: bold;">as</span> <span style="color: #004993;">DisplayObject</span><span style="color: #000000;">&#41;</span> == smallObjects<span style="color: #000000;">&#91;</span>currentObject<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>
      <span style="color: #000000;">&#123;</span>
         <span style="color: #009900;">//in here I handle all game/touch logic and that all works well</span>
      <span style="color: #000000;">&#125;</span></pre></div></div>



<p>Hope that helps
</p></description>
		</item>
		<item>
			<title>Frilli7 on "Touch targeting issue"</title>
			<link>http://forum.starling-framework.org/topic/touch-targeting-issue#post-33498</link>
			<pubDate>Wed, 22 May 2013 12:11:55 +0000</pubDate>
			<dc:creator>Frilli7</dc:creator>
			<guid isPermaLink="false">33498@http://forum.starling-framework.org/</guid>
			<description><p>Wow this is so stupid. I slaved over this issue for 5 hours yesterday to no avail and now, right after posting the question I seem to have found a work-around. Changing the pauseButton to an image made everything better. That was I could use:</p>


<div class="bb_syntax"><div class="code"><pre class="as3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>e.<span style="color: #004993;">target</span> == pauseButton<span style="color: #000000;">&#41;</span>
   <span style="color: #009900;">//pause logic</span></pre></div></div>



<p>But I still don't understand why though. I'm guessing it has something to do with event propagation?
</p></description>
		</item>
		<item>
			<title>Frilli7 on "Touch targeting issue"</title>
			<link>http://forum.starling-framework.org/topic/touch-targeting-issue#post-33497</link>
			<pubDate>Wed, 22 May 2013 11:59:41 +0000</pubDate>
			<dc:creator>Frilli7</dc:creator>
			<guid isPermaLink="false">33497@http://forum.starling-framework.org/</guid>
			<description><p>I am having trouble correctly targeting objects on the screen. This is probable very, very simple but let me explain. The basic setup is like this:</p>


<div class="bb_syntax"><div class="code"><pre class="as3" style="font-family:monospace;"><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>TouchEvent.TOUCH, objectPressed<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> objectPressed<span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span>TouchEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
   <span style="color: #6699cc; font-weight: bold;">var</span> touch<span style="color: #000000; font-weight: bold;">:</span>Touch = e.getTouch<span style="color: #000000;">&#40;</span>game, TouchPhase.BEGAN<span style="color: #000000;">&#41;</span>;
   <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>touch<span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
      <span style="color: #009900;">//smallObjects is an array containing all relevant game objects on screen</span>
      <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>e.<span style="color: #004993;">target</span> == smallObjects<span style="color: #000000;">&#91;</span>currentObject<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>
      <span style="color: #000000;">&#123;</span>
         <span style="color: #009900;">//in here I handle all game/touch logic and that all works well</span>
      <span style="color: #000000;">&#125;</span>
      <span style="color: #0033ff; font-weight: bold;">else</span>
      <span style="color: #000000;">&#123;</span>
         <span style="color: #009900;">//wrong object pressed</span>
         wrongAnswerSoundFX.<span style="color: #004993;">play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
      <span style="color: #000000;">&#125;</span>
   <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #009900;">//then at another place I have this pause button and wanted to use the TRIGGERED event</span>
<span style="color: #009900;">//the pauseButton is also positioned away from the game objects, in the upper right corner</span>
&nbsp;
pauseButton.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>TouchEvent.TRIGGERED, pauseGame<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> pauseGame<span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span>TouchEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
   <span style="color: #009900;">//pause game logic, not a problem</span>
<span style="color: #000000;">&#125;</span></pre></div></div>



<p>The problem is that I can't exclude the pause button from the objectPressed function. I tried doing something like:</p>


<div class="bb_syntax"><div class="code"><pre class="as3" style="font-family:monospace;"><span style="color: #009900;">//inside the objectPressed function, at the top, before anything else</span>
<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>e.<span style="color: #004993;">target</span> == pauseButton<span style="color: #000000;">&#41;</span> <span style="color: #009900;">//shouldn't this work?</span>
   <span style="color: #0033ff; font-weight: bold;">return</span>; <span style="color: #009900;">//to exit the function</span></pre></div></div>



<p>But that didn't work either. It doesn't even know if e.target is pauseButton.</p>
<p>This is probably an easy one but I can't seem to wrap my head around it.
</p></description>
		</item>
		<item>
			<title>bobbylox on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-33475</link>
			<pubDate>Wed, 22 May 2013 05:09:51 +0000</pubDate>
			<dc:creator>bobbylox</dc:creator>
			<guid isPermaLink="false">33475@http://forum.starling-framework.org/</guid>
			<description><p>Yeah - I actually set the viewport based on the stage width and height.  Also, the contentScaleFactor is set to 1.
</p></description>
		</item>
		<item>
			<title>Josh Tynjala on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-33471</link>
			<pubDate>Wed, 22 May 2013 03:38:40 +0000</pubDate>
			<dc:creator>Josh Tynjala</dc:creator>
			<guid isPermaLink="false">33471@http://forum.starling-framework.org/</guid>
			<description><p>Does your values for Starling stageWidth/stageHeight and the Starling viewPort have the same aspect ratio? If one is stretched in one direction compared to the other, I think I remember that it will break things.
</p></description>
		</item>
		<item>
			<title>bobbylox on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-33468</link>
			<pubDate>Wed, 22 May 2013 02:07:13 +0000</pubDate>
			<dc:creator>bobbylox</dc:creator>
			<guid isPermaLink="false">33468@http://forum.starling-framework.org/</guid>
			<description><p>Please help. I'm just a wretched gutter rat in need of aid...
</p></description>
		</item>
		<item>
			<title>bobbylox on "Touch Events not working as advertised"</title>
			<link>http://forum.starling-framework.org/topic/touch-events-not-working-as-advertised#post-33461</link>
			<pubDate>Wed, 22 May 2013 00:15:20 +0000</pubDate>
			<dc:creator>bobbylox</dc:creator>
			<guid isPermaLink="false">33461@http://forum.starling-framework.org/</guid>
			<description><p>I'm having a problem with a subclass of starling.display.Sprite.  I'd like for a child to grow when the parent is touched.  Unfortunately, the touch event is getting triggered by an area below the actual sprite (in the y+ direction), and sometimes the Touch passed in through the TouchEvent is null.</p>
<p>there's my code:</p>


<div class="bb_syntax"><div class="code"><pre class="as3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #004993;">code</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> com.greensock.TweenLite;
	<span style="color: #0033ff; font-weight: bold;">import</span> com.greensock.loading.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Bitmap</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">MouseEvent</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> starling.display.Image;
	<span style="color: #0033ff; font-weight: bold;">import</span> starling.display.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> starling.events.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> starling.textures.Texture;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> NumberSymbol extends <span style="color: #004993;">Sprite</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> number_img<span style="color: #000000; font-weight: bold;">:</span>Image;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> wheel<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span>;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> dot_txt<span style="color: #000000; font-weight: bold;">:</span>Texture;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> dots<span style="color: #000000; font-weight: bold;">:</span>Vector.<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">60</span>;Image<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> variable<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span>;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">value</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span>;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> adjusting<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span>;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> touch_id<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">int</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> NumberSymbol<span style="color: #000000;">&#40;</span><span style="color: #004993;">value</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span>=<span style="color: #000000; font-weight:bold;">0</span>, variable<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span>=<span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #0033ff; font-weight: bold;">this</span>.variable = variable;
			<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">value</span> = <span style="color: #004993;">value</span>;
			<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ADDED_TO_STAGE</span>, onAdded<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> onAdded<span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> wheel_bmp<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #000000;">&#40;</span>LoaderMax.getLoader<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;wheel&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #0033ff; font-weight: bold;">as</span> ImageLoader<span style="color: #000000;">&#41;</span>.rawContent;
			<span style="color: #6699cc; font-weight: bold;">var</span> wheel_txt<span style="color: #000000; font-weight: bold;">:</span>Texture = Texture.fromBitmap<span style="color: #000000;">&#40;</span>wheel_bmp<span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> wheel_img<span style="color: #000000; font-weight: bold;">:</span>Image = <span style="color: #0033ff; font-weight: bold;">new</span> Image<span style="color: #000000;">&#40;</span>wheel_txt<span style="color: #000000;">&#41;</span>;
			wheel_img.<span style="color: #004993;">x</span> = <span style="color: #000000; font-weight: bold;">-</span>wheel_img.width<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight:bold;">1</span>;
			wheel_img.<span style="color: #004993;">y</span> = <span style="color: #000000; font-weight: bold;">-</span>wheel_img.height<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight:bold;">1</span>;
			wheel = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			wheel.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>wheel_img<span style="color: #000000;">&#41;</span>;
			wheel.<span style="color: #004993;">scaleX</span> = <span style="color: #000000; font-weight:bold;">0.3</span>;
			wheel.<span style="color: #004993;">scaleY</span> = <span style="color: #000000; font-weight:bold;">0.3</span>;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>wheel<span style="color: #000000;">&#41;</span>;
			adjusting = <span style="color: #0033ff; font-weight: bold;">false</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> number_bmp<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #000000;">&#40;</span>LoaderMax.getLoader<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;number&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #0033ff; font-weight: bold;">as</span> ImageLoader<span style="color: #000000;">&#41;</span>.rawContent;
			<span style="color: #6699cc; font-weight: bold;">var</span> number_txt<span style="color: #000000; font-weight: bold;">:</span>Texture = Texture.fromBitmap<span style="color: #000000;">&#40;</span>number_bmp<span style="color: #000000;">&#41;</span>;
			number_img = <span style="color: #0033ff; font-weight: bold;">new</span> Image<span style="color: #000000;">&#40;</span>number_txt<span style="color: #000000;">&#41;</span>;
			number_img.<span style="color: #004993;">x</span> = <span style="color: #000000; font-weight: bold;">-</span>number_img.width<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight:bold;">1</span>;
			number_img.<span style="color: #004993;">y</span> = <span style="color: #000000; font-weight: bold;">-</span>number_img.height<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight:bold;">1</span>;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>number_img<span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>TouchEvent.TOUCH, onTouch<span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> dot_bmp<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #000000;">&#40;</span>LoaderMax.getLoader<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;dot&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #0033ff; font-weight: bold;">as</span> ImageLoader<span style="color: #000000;">&#41;</span>.rawContent;
			dot_txt = Texture.fromBitmap<span style="color: #000000;">&#40;</span>dot_bmp<span style="color: #000000;">&#41;</span>;
			dots = <span style="color: #0033ff; font-weight: bold;">new</span> Vector.<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">60</span>;Image<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			setValue<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">5</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> setValue<span style="color: #000000;">&#40;</span>val<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
			val = val<span style="color: #000000; font-weight: bold;">%</span>6;
			<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>value<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">60</span>;val<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span>=<span style="color: #004993;">value</span>; i<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">60</span>;val; i<span style="color: #000000; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
					<span style="color: #6699cc; font-weight: bold;">var</span> dot_img<span style="color: #000000; font-weight: bold;">:</span>Image = <span style="color: #0033ff; font-weight: bold;">new</span> Image<span style="color: #000000;">&#40;</span>dot_txt<span style="color: #000000;">&#41;</span>;
					<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">angle</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000;">&#40;</span>i<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">72</span><span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">90</span><span style="color: #000000;">&#41;</span>;
					dot_img.<span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">46</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">cos</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">angle</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">PI</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">180</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">-</span>dot_img.width<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight:bold;">1</span>;
					dot_img.<span style="color: #004993;">y</span> = <span style="color: #000000; font-weight:bold;">46</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">sin</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">angle</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">PI</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">180</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">-</span>dot_img.height<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;<span style="color: #000000; font-weight:bold;">1</span>;
					dots.<span style="color: #004993;">push</span><span style="color: #000000;">&#40;</span>dot_img<span style="color: #000000;">&#41;</span>;
					<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>dot_img<span style="color: #000000;">&#41;</span>;
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
			<span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>value<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">62</span>;val<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span>=val; i<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">60</span>;value; i<span style="color: #000000; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
					<span style="color: #004993;">removeChild</span><span style="color: #000000;">&#40;</span>dots.<span style="color: #004993;">pop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
			<span style="color: #004993;">value</span> = val;
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> getValue<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span><span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">return</span> <span style="color: #004993;">value</span>;
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> onTouch<span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span>TouchEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> touch<span style="color: #000000; font-weight: bold;">:</span>Touch = e.getTouch<span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #009900;">//trace(touch);</span>
			<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>touch.phase == TouchPhase.BEGAN<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>adjusting == <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
					<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">getBounds</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">+</span><span style="color: #990000;">&quot;, &quot;</span><span style="color: #000000; font-weight: bold;">+</span><span style="color: #0033ff; font-weight: bold;">this</span>.pivotY<span style="color: #000000;">&#41;</span>;
					touch_id = touch.id;
					adjusting = <span style="color: #0033ff; font-weight: bold;">true</span>;
					TweenLite.to<span style="color: #000000;">&#40;</span>wheel, <span style="color: #000000; font-weight:bold;">0.5</span>, <span style="color: #000000;">&#123;</span><span style="color: #004993;">scaleX</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">1</span>, <span style="color: #004993;">scaleY</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>;
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
			<span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>touch.phase == TouchPhase.MOVED<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>touch_id == touch.id<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
			<span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>touch.phase == TouchPhase.ENDED<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>touch.id == touch_id<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
					TweenLite.to<span style="color: #000000;">&#40;</span>wheel, <span style="color: #000000; font-weight:bold;">0.5</span>, <span style="color: #000000;">&#123;</span><span style="color: #004993;">scaleX</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">0.3</span>, <span style="color: #004993;">scaleY</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">0.3</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>;
					adjusting = <span style="color: #0033ff; font-weight: bold;">false</span>;
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>



<p>and before you ask, I am in TOP_LEFT and NO_SCALE mode.  Does anyone know what coudl be going wrong here?
</p></description>
		</item>
		<item>
			<title>bobbylox on "Touchy Subject"</title>
			<link>http://forum.starling-framework.org/topic/touchy-subject#post-33451</link>
			<pubDate>Tue, 21 May 2013 21:05:13 +0000</pubDate>
			<dc:creator>bobbylox</dc:creator>
			<guid isPermaLink="false">33451@http://forum.starling-framework.org/</guid>
			<description><p>I've got this same offset problem, even though I am in TOP_LEFT and NO_SCALE mode.  Touch events seem to fire below (y+) the sprite in question.
</p></description>
		</item>
		<item>
			<title>jHead on "TouchEvent + DisplayList objects"</title>
			<link>http://forum.starling-framework.org/topic/touchevent-displaylist-objects#post-32514</link>
			<pubDate>Fri, 10 May 2013 21:07:12 +0000</pubDate>
			<dc:creator>jHead</dc:creator>
			<guid isPermaLink="false">32514@http://forum.starling-framework.org/</guid>
			<description><p>cool, thanks.
</p></description>
		</item>
		<item>
			<title>Jeff on "TouchEvent + DisplayList objects"</title>
			<link>http://forum.starling-framework.org/topic/touchevent-displaylist-objects#post-32511</link>
			<pubDate>Fri, 10 May 2013 20:37:46 +0000</pubDate>
			<dc:creator>Jeff</dc:creator>
			<guid isPermaLink="false">32511@http://forum.starling-framework.org/</guid>
			<description><p>Not sure how many native controls you will end up having in your scene, but you can always add some 'did hit native control' checking in your Starling touch code right before you do anything in the Starling layer.  See if the global touch location hitTests a native button, and if so, ignore the touch.
</p></description>
		</item>
		<item>
			<title>jHead on "TouchEvent + DisplayList objects"</title>
			<link>http://forum.starling-framework.org/topic/touchevent-displaylist-objects#post-32507</link>
			<pubDate>Fri, 10 May 2013 20:08:08 +0000</pubDate>
			<dc:creator>jHead</dc:creator>
			<guid isPermaLink="false">32507@http://forum.starling-framework.org/</guid>
			<description><p>Hi,</p>
<p>I have a game scene created with Starling and some buttons made in regular flash display list on top of the game scene (like in Angry Birds Facebook).</p>
<p>The Starling stage listen for touch events. But when I click on the flash display list objects, the touch event is triggered by the Starling stage. Is there a way to avoid this behaviour?</p>
<p>I tried to attach the listener on a Quad placed on top of the game scene instead of the Starling stage but the touch event is not triggered at all.</p>
<p>here is my code for the gamescene :</p>


<div class="bb_syntax"><div class="code"><pre class="as3" style="font-family:monospace;"><span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>TouchEvent.TOUCH, onStageTouch<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> onStageTouch<span style="color: #000000;">&#40;</span>event <span style="color: #000000; font-weight: bold;">:</span> TouchEvent<span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #6699cc; font-weight: bold;">var</span> touch <span style="color: #000000; font-weight: bold;">:</span> Touch = event.getTouch<span style="color: #000000;">&#40;</span><span style="color: #004993;">stage</span><span style="color: #000000;">&#41;</span>;
&nbsp;
    <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>touch <span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">38</span>;<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">38</span>; touch.phase == TouchPhase.ENDED<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        doSomething<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        <span style="color: #0033ff; font-weight: bold;">return</span>;
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>touch <span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">38</span>;<span style="color: #000000; font-weight: bold;">&amp;</span>#<span style="color: #000000; font-weight:bold;">38</span>; touch.phase == TouchPhase.HOVER<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        doSomethingElse<span style="color: #000000;">&#40;</span>touch.globalX, touch.globalY<span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>



<p>the code for the flash display list button :</p>


<div class="bb_syntax"><div class="code"><pre class="as3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> closeButton <span style="color: #000000; font-weight: bold;">:</span> CloseButton = <span style="color: #0033ff; font-weight: bold;">new</span> CloseButton<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
closeButton.<span style="color: #004993;">buttonMode</span> = <span style="color: #0033ff; font-weight: bold;">true</span>;
closeButton.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">CLICK</span>, onButtonClick<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> onButtonClick<span style="color: #000000;">&#40;</span>event <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
     quitGameScene<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></div></div>


</description>
		</item>
		<item>
			<title>pavel.fljot on "Gestouch — multitouch gestures for Starling and classic DisplayList"</title>
			<link>http://forum.starling-framework.org/topic/gestouch-%e2%80%94-multitouch-gestures-for-starling-and-classic-displaylist/page/4#post-32274</link>
			<pubDate>Wed, 08 May 2013 10:41:13 +0000</pubDate>
			<dc:creator>pavel.fljot</dc:creator>
			<guid isPermaLink="false">32274@http://forum.starling-framework.org/</guid>
			<description><p>@Markel</p>
<p>btw have you tried linking Gestouch against source code or compiled swc? (with that ASC 2.0 and inline stuff)<br />
Because maybe the new compiler will work just fine with swc, affecting only YOUR code.
</p></description>
		</item>
		<item>
			<title>pavel.fljot on "Gestouch — multitouch gestures for Starling and classic DisplayList"</title>
			<link>http://forum.starling-framework.org/topic/gestouch-%e2%80%94-multitouch-gestures-for-starling-and-classic-displaylist/page/4#post-32003</link>
			<pubDate>Sun, 05 May 2013 15:30:14 +0000</pubDate>
			<dc:creator>pavel.fljot</dc:creator>
			<guid isPermaLink="false">32003@http://forum.starling-framework.org/</guid>
			<description><p>@clozertou</p>
<p>was there something unclear with the examples?
</p></description>
		</item>
		<item>
			<title>clozertou on "Gestouch — multitouch gestures for Starling and classic DisplayList"</title>
			<link>http://forum.starling-framework.org/topic/gestouch-%e2%80%94-multitouch-gestures-for-starling-and-classic-displaylist/page/4#post-31988</link>
			<pubDate>Sun, 05 May 2013 10:01:05 +0000</pubDate>
			<dc:creator>clozertou</dc:creator>
			<guid isPermaLink="false">31988@http://forum.starling-framework.org/</guid>
			<description><p>Hey, how can i apply multiple guestures to a single flex button? single tap (do different), double tap (do different task), and tap and hold?<br />
A code example vl b highly appreciated.
</p></description>
		</item>
		<item>
			<title>skol on "Gestouch — multitouch gestures for Starling and classic DisplayList"</title>
			<link>http://forum.starling-framework.org/topic/gestouch-%e2%80%94-multitouch-gestures-for-starling-and-classic-displaylist/page/4#post-31911</link>
			<pubDate>Fri, 03 May 2013 15:58:22 +0000</pubDate>
			<dc:creator>skol</dc:creator>
			<guid isPermaLink="false">31911@http://forum.starling-framework.org/</guid>
			<description><p>@Pavel, I've updated the post. I guess it matters which of the objects listens to the zoom event.
</p></description>
		</item>
		<item>
			<title>pavel.fljot on "Gestouch — multitouch gestures for Starling and classic DisplayList"</title>
			<link>http://forum.starling-framework.org/topic/gestouch-%e2%80%94-multitouch-gestures-for-starling-and-classic-displaylist/page/4#post-31909</link>
			<pubDate>Fri, 03 May 2013 15:50:19 +0000</pubDate>
			<dc:creator>pavel.fljot</dc:creator>
			<guid isPermaLink="false">31909@http://forum.starling-framework.org/</guid>
			<description><p>@skol</p>
<p>that looks totally random... you'd better analyse what's wrong with the point. Put a simple project somewhere maybe?
</p></description>
		</item>

	</channel>
</rss>
