<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">Open Source Interface</title>
    <link rel="alternate" type="text/html" href="http://nuigroup.com/forums/" />
    <link rel="self" type="application/atom+xml" href="http://nuigroup.com/forums/atom/" />
    <updated></updated>
    <rights>Copyright (c) 2008</rights>
    <generator uri="http://www.pmachine.com/" version="1.5.2">ExpressionEngine</generator>
    <id>tag:nuigroup.com,2008:08:20</id>


    <entry>
      <title>swf &#45; exe problem</title>
      <link rel="alternate" type="text/html" href="http://nuigroup.com/forums/viewthread/2784/" />      
      <id>tag:nuigroup.com,2008:forums/viewthread/.2784</id>
      <published>2008-08-20T04:17:44Z</published>
      <updated></updated>
      <author><name>Lathander</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi,
<br />
I have downloaded some flash aps such as media app, puzzle game, etc. 
</p>
<p>
Problem is when i run .swf file it doesnt respond to touchlib/osc, like it is blind. 
<br />
But when i run the .exe file of same app, it works very well. 
</p>
<p>
are there any posts about it ?
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Keyboard Object&#63;&#63;&#63;&amp;nbsp;</title>
      <link rel="alternate" type="text/html" href="http://nuigroup.com/forums/viewthread/2748/" />      
      <id>tag:nuigroup.com,2008:forums/viewthread/.2748</id>
      <published>2008-08-15T20:37:06Z</published>
      <updated></updated>
      <author><name>1337Noobster</name></author>
      <content type="html">
      <![CDATA[
        <p>I was looking around the forums and i didn&#8217;t find much on using the keyboard object in the touchlib objects folder.(app.core.objects)
<br />
I have noticed the nui keyboard in a few videos that i found on YouTube&#8230;
</p>
<p>
What i did find was what Taha posted <a href="http://nuigroup.com/forums/viewthread/1913/">here</a>&#8230;
</p>
<p>
When i tryed the code that was in that post&#8230; the keyboard object gave me all types of errors. But all of them seemed to point to the same method&#8230; getChildByName
<br />
I am not sure why it is not working, i did get the TextObject to work<img src="http://nuigroup.com/images/smileys/smile.gif" width="19" height="19" alt="smile" style="border:0;" /> that isn&#8217;t a problem&#8230; I just need help getting the keyboard to send the key presses to the text object&#8230;
</p>
<p>
If someone could please help me that would be the best&#8230; <img src="http://nuigroup.com/images/smileys/hmm.gif" width="19" height="19" alt="hmmm" style="border:0;" />
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>sever is not working</title>
      <link rel="alternate" type="text/html" href="http://nuigroup.com/forums/viewthread/2716/" />      
      <id>tag:nuigroup.com,2008:forums/viewthread/.2716</id>
      <published>2008-08-12T09:29:40Z</published>
      <updated>2008-08-12T09:30:15Z</updated>
      <author><name>Narayana</name></author>
      <content type="html">
      <![CDATA[
        <p>well when calibrated configuration.bat in MTmini package then i have clicked on server it not working.i mean coming and disappearing but  when i am running gateway it running fine.but my flash files are not ruuning  
</p>
<p>
 and my another issue is in folder Touchlib_Tracking_Software i want run osc but error which i have attached.
</p>
<p>
PL help me out because i want to work on flash app
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Question of mousedriver[Request to delete]</title>
      <link rel="alternate" type="text/html" href="http://nuigroup.com/forums/viewthread/2741/" />      
      <id>tag:nuigroup.com,2008:forums/viewthread/.2741</id>
      <published>2008-08-15T04:11:43Z</published>
      <updated>2008-08-15T19:22:45Z</updated>
      <author><name>enjoylife</name></author>
      <content type="html">
      <![CDATA[
        <p>I operate mousedriver directly from touchlib file, all operation is normal, and as me 
<br />
Operate mousedriver according to the following ways, 
<br />
For example input in the address portion: D:\myfile\touchlib_beta_v2.0\TouchLib\mousedriver.exe 
<br />
,Press the enter key and run, the mouse appears unboundedly, the question of running arbitrarily, what reason? 
<br />
Operate or the hardware and reason of the software，I estimate it is the reason why a procedure transfers, but where is the subject problem? please help you！
</p>
<p>
my multitouch-table is DI.
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Problem with touch event in game</title>
      <link rel="alternate" type="text/html" href="http://nuigroup.com/forums/viewthread/2742/" />      
      <id>tag:nuigroup.com,2008:forums/viewthread/.2742</id>
      <published>2008-08-15T05:26:15Z</published>
      <updated></updated>
      <author><name>gordee</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi,
</p>
<p>
I am having some trouble adapting a game to process touch events. I have posted the area of code below. It is a game from Gary Rosenzweig&#8217;s ActionScript 3.0 Game Programming University. 
</p>
<p>
Card10 refers to a movie clip in the .fla library with a linkage name the same. There is also a Card10.as file which holds the card flip animation.
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #007700">for(var&nbsp;</span><span style="color: #0000BB">x</span><span style="color: #007700">:</span><span style="color: #0000BB">uint</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">;</span><span style="color: #0000BB">x</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">boardWidth</span><span style="color: #007700">;</span><span style="color: #0000BB">x</span><span style="color: #007700">++)&nbsp;</span><span style="color: #0000BB">&#123;&nbsp;</span><span style="color: #FF8000">//&nbsp;horizontal<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">for(var&nbsp;</span><span style="color: #0000BB">y</span><span style="color: #007700">:</span><span style="color: #0000BB">uint</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">;</span><span style="color: #0000BB">y</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">boardHeight</span><span style="color: #007700">;</span><span style="color: #0000BB">y</span><span style="color: #007700">++)&nbsp;</span><span style="color: #0000BB">&#123;&nbsp;</span><span style="color: #FF8000">//&nbsp;vertical<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">var&nbsp;</span><span style="color: #0000BB">c</span><span style="color: #007700">:</span><span style="color: #0000BB">Card10&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Card10</span><span style="color: #007700">();&nbsp;</span><span style="color: #FF8000">//&nbsp;copy&nbsp;the&nbsp;movie&nbsp;clip<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">c</span><span style="color: #007700">.</span><span style="color: #0000BB">stop</span><span style="color: #007700">();&nbsp;</span><span style="color: #FF8000">//&nbsp;stop&nbsp;on&nbsp;first&nbsp;frame<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">c</span><span style="color: #007700">.</span><span style="color: #0000BB">x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">x</span><span style="color: #007700">*</span><span style="color: #0000BB">cardHorizontalSpacing</span><span style="color: #007700">+</span><span style="color: #0000BB">boardOffsetX</span><span style="color: #007700">;&nbsp;</span><span style="color: #FF8000">//&nbsp;set&nbsp;position<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">c</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">y</span><span style="color: #007700">*</span><span style="color: #0000BB">cardVerticalSpacing</span><span style="color: #007700">+</span><span style="color: #0000BB">boardOffsetY</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;</span><span style="color: #0000BB">r</span><span style="color: #007700">:</span><span style="color: #0000BB">uint&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Math</span><span style="color: #007700">.</span><span style="color: #0000BB">floor</span><span style="color: #007700">(</span><span style="color: #0000BB">Math</span><span style="color: #007700">.</span><span style="color: #0000BB">random</span><span style="color: #007700">()*</span><span style="color: #0000BB">cardlist</span><span style="color: #007700">.</span><span style="color: #0000BB">length</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;get&nbsp;a&nbsp;random&nbsp;face<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">c</span><span style="color: #007700">.</span><span style="color: #0000BB">cardface&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">cardlist&#91;r&#93;</span><span style="color: #007700">;&nbsp;</span><span style="color: #FF8000">//&nbsp;assign&nbsp;face&nbsp;to&nbsp;card<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">cardlist</span><span style="color: #007700">.</span><span style="color: #0000BB">splice</span><span style="color: #007700">(</span><span style="color: #0000BB">r</span><span style="color: #007700">,</span><span style="color: #0000BB">1</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;remove&nbsp;face&nbsp;from&nbsp;list<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//c.addEventListener(MouseEvent.MOUSE_UP,clickCard);&nbsp;//&nbsp;have&nbsp;it&nbsp;listen&nbsp;for&nbsp;clicks<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">c</span><span style="color: #007700">.</span><span style="color: #0000BB">addEventListener</span><span style="color: #007700">(</span><span style="color: #0000BB">TouchEvent</span><span style="color: #007700">.</span><span style="color: #0000BB">CLICK</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">clickCard</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;have&nbsp;it&nbsp;listen&nbsp;for&nbsp;touches<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">c</span><span style="color: #007700">.</span><span style="color: #0000BB">buttonMode&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">c</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;show&nbsp;the&nbsp;card<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">cardsLeft</span><span style="color: #007700">++;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;text&nbsp;fields<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Format&nbsp;the&nbsp;text<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">txtFormat&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">TextFormat</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">txtFormat</span><span style="color: #007700">.</span><span style="color: #0000BB">color&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0xC0C0C0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">txtFormat</span><span style="color: #007700">.</span><span style="color: #0000BB">font&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Trajan&nbsp;pro"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">txtFormat</span><span style="color: #007700">.</span><span style="color: #0000BB">bold&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">txtFormat</span><span style="color: #007700">.</span><span style="color: #0000BB">size&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">14</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;set&nbsp;up&nbsp;the&nbsp;score<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameScoreField&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">TextField</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameScoreField</span><span style="color: #007700">.</span><span style="color: #0000BB">defaultTextFormat&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">txtFormat</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameScoreField</span><span style="color: #007700">.</span><span style="color: #0000BB">x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">10</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameScoreField</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">50</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">gameScoreField</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameScore&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">showGameScore</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;set&nbsp;up&nbsp;the&nbsp;clock<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameTimeField&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">TextField</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameTimeField</span><span style="color: #007700">.</span><span style="color: #0000BB">defaultTextFormat&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">txtFormat</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameTimeField</span><span style="color: #007700">.</span><span style="color: #0000BB">x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">10</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameTimeField</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">100</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">gameTimeField</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameStartTime&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getTimer</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameTime&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">addEventListener</span><span style="color: #007700">(</span><span style="color: #0000BB">Event</span><span style="color: #007700">.</span><span style="color: #0000BB">ENTER_FRAME</span><span style="color: #007700">,</span><span style="color: #0000BB">showTime</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;player&nbsp;clicked&nbsp;on&nbsp;a&nbsp;card<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">public&nbsp;</span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">clickCard</span><span style="color: #007700">(</span><span style="color: #0000BB">event</span><span style="color: #007700">:</span><span style="color: #0000BB">TouchEvent</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">var&nbsp;</span><span style="color: #0000BB">thisCard</span><span style="color: #007700">:</span><span style="color: #0000BB">Card10&nbsp;</span><span style="color: #007700">=&nbsp;(</span><span style="color: #0000BB">event</span><span style="color: #007700">.</span><span style="color: #0000BB">target&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">Card10</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;what&nbsp;card?<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">trace</span><span style="color: #007700">(</span><span style="color: #DD0000">"touch&nbsp;event"&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">event</span><span style="color: #007700">.</span><span style="color: #0000BB">target</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">firstCard&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;&nbsp;</span><span style="color: #FF8000">//&nbsp;first&nbsp;card&nbsp;in&nbsp;a&nbsp;pair<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">firstCard&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">thisCard</span><span style="color: #007700">;&nbsp;</span><span style="color: #FF8000">//&nbsp;note&nbsp;it<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">thisCard</span><span style="color: #007700">.</span><span style="color: #0000BB">startFlip</span><span style="color: #007700">(</span><span style="color: #0000BB">thisCard</span><span style="color: #007700">.</span><span style="color: #0000BB">cardface</span><span style="color: #007700">+</span><span style="color: #0000BB">2</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">playSound</span><span style="color: #007700">(</span><span style="color: #0000BB">theFirstCardSound</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;if&nbsp;(</span><span style="color: #0000BB">firstCard&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">thisCard</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;&nbsp;</span><span style="color: #FF8000">//&nbsp;clicked&nbsp;first&nbsp;card&nbsp;again<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">firstCard</span><span style="color: #007700">.</span><span style="color: #0000BB">startFlip</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">firstCard&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">playSound</span><span style="color: #007700">(</span><span style="color: #0000BB">theMissSound</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;if&nbsp;(</span><span style="color: #0000BB">secondCard&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;&nbsp;</span><span style="color: #FF8000">//&nbsp;second&nbsp;card&nbsp;in&nbsp;a&nbsp;pair<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">secondCard&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">thisCard</span><span style="color: #007700">;&nbsp;</span><span style="color: #FF8000">//&nbsp;note&nbsp;it<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">thisCard</span><span style="color: #007700">.</span><span style="color: #0000BB">startFlip</span><span style="color: #007700">(</span><span style="color: #0000BB">thisCard</span><span style="color: #007700">.</span><span style="color: #0000BB">cardface</span><span style="color: #007700">+</span><span style="color: #0000BB">2</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;compare&nbsp;two&nbsp;cards<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">firstCard</span><span style="color: #007700">.</span><span style="color: #0000BB">cardface&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">secondCard</span><span style="color: #007700">.</span><span style="color: #0000BB">cardface</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;remove&nbsp;a&nbsp;match<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">removeChild</span><span style="color: #007700">(</span><span style="color: #0000BB">firstCard</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">removeChild</span><span style="color: #007700">(</span><span style="color: #0000BB">secondCard</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;reset&nbsp;selection<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">firstCard&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">secondCard&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;add&nbsp;points<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">gameScore&nbsp;</span><span style="color: #007700">+=&nbsp;</span><span style="color: #0000BB">pointsForMatch</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">showGameScore</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">playSound</span><span style="color: #007700">(</span><span style="color: #0000BB">theMatchSound</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;check&nbsp;for&nbsp;game&nbsp;over<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">cardsLeft&nbsp;</span><span style="color: #007700">-=&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">;&nbsp;</span><span style="color: #FF8000">//&nbsp;2&nbsp;less&nbsp;cards<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">cardsLeft&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MovieClip</span><span style="color: #007700">(</span><span style="color: #0000BB">root</span><span style="color: #007700">).</span><span style="color: #0000BB">gameScore&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">gameScore</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">MovieClip</span><span style="color: #007700">(</span><span style="color: #0000BB">root</span><span style="color: #007700">).</span><span style="color: #0000BB">gameTime&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">clockTime</span><span style="color: #007700">(</span><span style="color: #0000BB">gameTime</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">MovieClip</span><span style="color: #007700">(</span><span style="color: #0000BB">root</span><span style="color: #007700">).</span><span style="color: #0000BB">gotoAndStop</span><span style="color: #007700">(</span><span style="color: #DD0000">"gameover"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gameScore&nbsp;</span><span style="color: #007700">+=&nbsp;</span><span style="color: #0000BB">pointsForMiss</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">showGameScore</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">playSound</span><span style="color: #007700">(</span><span style="color: #0000BB">theMissSound</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">flipBackTimer&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Timer</span><span style="color: #007700">(</span><span style="color: #0000BB">2000</span><span style="color: #007700">,</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">flipBackTimer</span><span style="color: #007700">.</span><span style="color: #0000BB">addEventListener</span><span style="color: #007700">(</span><span style="color: #0000BB">TimerEvent</span><span style="color: #007700">.</span><span style="color: #0000BB">TIMER_COMPLETE</span><span style="color: #007700">,</span><span style="color: #0000BB">returnCards</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">flipBackTimer</span><span style="color: #007700">.</span><span style="color: #0000BB">start</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;&nbsp;</span><span style="color: #FF8000">//&nbsp;starting&nbsp;to&nbsp;pick&nbsp;another&nbsp;pair<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">returnCards</span><span style="color: #007700">(</span><span style="color: #0000BB">null</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">playSound</span><span style="color: #007700">(</span><span style="color: #0000BB">theFirstCardSound</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;select&nbsp;first&nbsp;card&nbsp;in&nbsp;next&nbsp;pair<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">firstCard&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">thisCard</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">firstCard</span><span style="color: #007700">.</span><span style="color: #0000BB">startFlip</span><span style="color: #007700">(</span><span style="color: #0000BB">thisCard</span><span style="color: #007700">.</span><span style="color: #0000BB">cardface</span><span style="color: #007700">+</span><span style="color: #0000BB">2</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;</span>
</code></div><p> 
</p>
<p>
and the errors thrown are
</p>
<p>
TypeError: Error #1009: Cannot access a property or method of a null object reference.
<br />
    at MatchingPairs/clickCard()
<br />
    at flash.events::EventDispatcher/dispatchEventFunction()
<br />
    at flash.events::EventDispatcher/dispatchEvent()
<br />
    at flash.events::TUIOObject/notifyRemoved()
<br />
    at flash.events::TUIO$/processMessage()
<br />
    at flash.events::TUIO$/dataHandler()
</p>
<p>
Sorry to dump loads of code here but I thought it was needed to put things into context.
<br />
I&#8217;m not sure how to get around this problem.
</p>
<p>
All of the buttons in the game work with touch events, its just this one, which is the main function in the game!
<br />
I&#8217;m hoping to share some games with the community when I get going.
</p>
<p>
Thanks for any help
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Multiple users</title>
      <link rel="alternate" type="text/html" href="http://nuigroup.com/forums/viewthread/2732/" />      
      <id>tag:nuigroup.com,2008:forums/viewthread/.2732</id>
      <published>2008-08-14T10:03:36Z</published>
      <updated>2008-08-14T10:04:55Z</updated>
      <author><name>fdbck</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi guys!
</p>
<p>
I have some problems with my app. I&#8217;ve two objects on stage, both are Rotatable (>Rotatable.as). 
<br />
When two users are interacting, so each person one object, dragging is going fine, but the problem occurs when user A is moving the blob and user B
<br />
touches the object really fast (or move his hands from the table), the object of user A moves to the blob coordinates of user B.
</p>
<p>
is it possible to develop for multiple user inputs?
</p>
<p>
hope to see a reply.
</p>
<p>
Grz,
</p>
<p>
j00
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>TypeError: Error #1009: Cannot access a property or method of a null object reference.&amp;nbsp;</title>
      <link rel="alternate" type="text/html" href="http://nuigroup.com/forums/viewthread/2728/" />      
      <id>tag:nuigroup.com,2008:forums/viewthread/.2728</id>
      <published>2008-08-13T16:59:13Z</published>
      <updated></updated>
      <author><name>gordee</name></author>
      <content type="html">
      <![CDATA[
        <p>Hello group,
</p>
<p>
Its been a while since I posted, been busy.
</p>
<p>
So I just tried to adapt an app to recieve touch events and I&#8217;m getting nowhere fast&#8230;
<br />
I have imported the events class, and extended RotatableScalable. When I use TUIO init debug = true I get blobs (that dont perform the function) but when it is set to false I get this error;
</p>
<p>
TypeError: Error #1009: Cannot access a property or method of a null object reference.
<br />
    at flash.events::TUIO$/socketStatus()
<br />
    at flash.events::TUIO$/connectHandler()
</p>
<p>
can anyone help me out?
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>What info is Flash receiving&#63;&amp;nbsp;</title>
      <link rel="alternate" type="text/html" href="http://nuigroup.com/forums/viewthread/2708/" />      
      <id>tag:nuigroup.com,2008:forums/viewthread/.2708</id>
      <published>2008-08-11T18:00:56Z</published>
      <updated></updated>
      <author><name>1337Noobster</name></author>
      <content type="html">
      <![CDATA[
        <p>When we run a connection with Flash&#8230; what exactly is flash getting. Is it just receiving the x, y, and number of the touches? Or is there more that i am not understanding? How does flash know when it is connected to FLOSC? Does FLOSC send it a couple lines of code that let it know that it is connected? If someone could just clear up the coding aspect of TUIO and Flash how they work together. As i understand what each one does and were it sends its info and what each thing does when it gets the info...( thanks to nuiman&#8217;s post <a href="http://nuigroup.com/forums/viewthread/1495/">here.</a>)&#8230; but i am confused as to what info it is sending. If anyone can explain the code or exactly how this info is sent or received that would really help! <img src="http://nuigroup.com/images/smileys/smile.gif" width="19" height="19" alt="smile" style="border:0;" />
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Interview with Mark van Wijnen</title>
      <link rel="alternate" type="text/html" href="http://nuigroup.com/forums/viewthread/2705/" />      
      <id>tag:nuigroup.com,2008:forums/viewthread/.2705</id>
      <published>2008-08-10T17:21:29Z</published>
      <updated>2008-08-10T17:22:18Z</updated>
      <author><name>jbruno</name></author>
      <content type="html">
      <![CDATA[
        <p>Hey guys,
</p>
<p>
My interview with Mark Van Wijnen, creator of the <a href="http://multitouchdesign.blogspot.com/">Settlers of Catan is now up</a>.&nbsp; Part of the interview below:
</p>
<blockquote><p><b>Who are you? What do you do? What are your capabilities? What is your motivation to pursue multi-touch?</b>
<br />
My name is Mark van Wijnen, 23 years old, and I live in Holland. I am currently doing my masters in arts and technology at the HKU in Utrecht where I am being trained to become a game designer - I&#8217;m a designer and a programmer.
</p>
<p>
My motivation for pursuing the multi-touch technology is mainly my graduation project, where I wanted to prove that you can bring board games to a computer with the same amount of social interaction and fun, or even more fun. I believe computers can really enhance board games.
</p>
<p>
<b>What&#8217;s the hardest part of multi-touch, what parts do you think need the most improvement in terms of tools for developers?</b>
<br />
Regarding to games, the hardest part of multi-touch is hiding information. When it comes to parts that need most improvement, that&#8217;s really hard to say.
</p>
<p>
Off the top of my head I would say that it would be great if Touchlib could recognize one finger from another finger and if two fingers come close to each other that would still be recognized as two fingers. As for the communication library between Touchlib and Flash I would make it more accesable and much more userfriendly. Other then that it&#8217;s pretty solid.
<br />
<b>
<br />
Tell us a little bit about your Settlers game. What types of multi-touch functionality does it have?</b>
<br />
Currently the Settlers game is just a copy of the original traditional board game: The Settlers of Catan by Klaus Teuber. I don&#8217;t allow myself to copy the dice, cards, pawns etc. - I used different methods to work around them. Every player operates his or her control panel by just a single touch. Because they can all use it simultaneously it becomes multi-touch.
</p>
<p>
<b>How did you program it? What were your objectives?</b>
<br />
I coded the game in Actionscript 3 which comes with Adobe Flash CS3 and used my own Touch!Library for the communication between OSC and FLOSC, which is also coded in AS3. My objects were to design a simple tool so anyone could create multi-touch applications fast. My main objective was to see what the board game experience would look like on a multi-touch device and how a computer could digitally enhance it.
</p>
<p>
<b>How did you design it? Can you take us through the process?</b>
<br />
You always start with an idea. I wanted to experience board games on a multi-touch and therefor I could have chosen any traditional board game. The reason I choose The Settlers of Catan was because I wanted to avoid using any external objects. Catan seemed to have a lot of typical board game objects like dice, cards, pawns, etc. this would mean I would need to find other solutions for them. So I started with creating a framework for the game that holds every action you can do in the game in functions.
</p>
<p>
For example the functions giveResourceToPlayer() or takeResourceFromPlayer(). A framework is very handy because there are so many ways how players could interact with your game, if you would change one thing because it didn&#8217;t seem to work, you don&#8217;t have to change the whole code. After the framework was done, I concentrated on the design and interaction. I&#8217;m not an artist and so I was very limited to the graphical part. It&#8217;s very important to have an overview of your game in mind, how players will overal interact with your game. I came up with the individual control panels, where everyone has their own panel to see their resources and to perform their actions.
</p>
<p>
After that had been decided I needed to build all the features you can do in the game. It&#8217;s VERY important to TEST!! When a version is stable enough you should definitely test it out with family, friends or other people who are willing to help out, this way you get new feedback and you are able to quickly see what works, what doesn&#8217;t work, and more importantly you can see if your design is logical enough.
</p>
<p>
Can the player navigate and operate the control panel without you telling them where to touch? Bugs you may come across, any feedback you may get, you put that in the game and test again. If the game designer and the testing group are happy you can release it.</p></blockquote>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Regular mouse events in flash</title>
      <link rel="alternate" type="text/html" href="http://nuigroup.com/forums/viewthread/2580/" />      
      <id>tag:nuigroup.com,2008:forums/viewthread/.2580</id>
      <published>2008-07-27T06:49:54Z</published>
      <updated></updated>
      <author><name>Ivo</name></author>
      <content type="html">
      <![CDATA[
        <p>Hello i&#8217;m trying to find a solution for a problem, i&#8217;m looking for an action script that converts the BLOBS from TUIO into mouseclicks in flash.
</p>
<p>
My flash projects reads the blobs from tuio but now I have to put a script into my AS file that will act like a mouse.
</p>
<p>
I found on the web while searching for a solution the following blog text:
</p>
<p>
&#8220;Lately I&#8217;ve been doing some work on creating some Actionscript 3 classes for Flash 9 that will interface with FLOsc. The nice thing about what I&#8217;m doing is that my TUIO events will extend the regular mouse events, so regular components (such as buttons, scrollbars, etc) may still work in a multitouch setting.&#8221;
</p>
<p>
That&#8217;s what I need, but I can&#8217;t find an email adres from the owner to ask him, but this is exactly what I need.
<br />
I hope someone can help me.
</p>
      ]]>
      </content>
    </entry>


</feed>