<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creation of a matching game with Flash and AS3</title>
	<atom:link href="http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Sat, 11 Feb 2012 05:27:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: hilfe beim memoryspiel - Flashforum</title>
		<link>http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/#comment-1036707</link>
		<dc:creator>hilfe beim memoryspiel - Flashforum</dc:creator>
		<pubDate>Wed, 08 Feb 2012 08:17:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=266#comment-1036707</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caner Erdogan</title>
		<link>http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/#comment-937172</link>
		<dc:creator>Caner Erdogan</dc:creator>
		<pubDate>Mon, 19 Sep 2011 11:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=266#comment-937172</guid>
		<description>How to add timer for bonus to this. What if who find all colors matches and earn time bonus?

How to do it?

Thank you All.
Caner</description>
		<content:encoded><![CDATA[<p>How to add timer for bonus to this. What if who find all colors matches and earn time bonus?</p>
<p>How to do it?</p>
<p>Thank you All.<br />
Caner</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Honey</title>
		<link>http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/#comment-926227</link>
		<dc:creator>Honey</dc:creator>
		<pubDate>Fri, 09 Sep 2011 03:03:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=266#comment-926227</guid>
		<description>hello sir..im trying to add a level in my game using your codes..so it means adding more cards too..however, when run the file, im always getting an &#039;undefined&#039; in the random part and i can&#039;t debug it..can you help me with this sir? THANK YOU VERY MUCH!:D</description>
		<content:encoded><![CDATA[<p>hello sir..im trying to add a level in my game using your codes..so it means adding more cards too..however, when run the file, im always getting an &#8216;undefined&#8217; in the random part and i can&#8217;t debug it..can you help me with this sir? THANK YOU VERY MUCH!:D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Honey</title>
		<link>http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/#comment-924677</link>
		<dc:creator>Honey</dc:creator>
		<pubDate>Wed, 07 Sep 2011 06:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=266#comment-924677</guid>
		<description>hello..i would like to ask..how did you create the .col? it was the part that i don&#039;t understand..thank you very much!:D</description>
		<content:encoded><![CDATA[<p>hello..i would like to ask..how did you create the .col? it was the part that i don&#8217;t understand..thank you very much!:D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muslimah</title>
		<link>http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/#comment-909345</link>
		<dc:creator>Muslimah</dc:creator>
		<pubDate>Sun, 21 Aug 2011 14:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=266#comment-909345</guid>
		<description>How do you add an image to the background?  I tried to add a background image adding the color_match class to a background class.  This caused the color_match class to act funny when you click on it.</description>
		<content:encoded><![CDATA[<p>How do you add an image to the background?  I tried to add a background image adding the color_match class to a background class.  This caused the color_match class to act funny when you click on it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julius</title>
		<link>http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/#comment-906564</link>
		<dc:creator>Julius</dc:creator>
		<pubDate>Thu, 18 Aug 2011 07:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=266#comment-906564</guid>
		<description>is this working? i want to see the flow of this game</description>
		<content:encoded><![CDATA[<p>is this working? i want to see the flow of this game</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/#comment-904520</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 15 Aug 2011 19:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=266#comment-904520</guid>
		<description>Very helpful and appreciated :)</description>
		<content:encoded><![CDATA[<p>Very helpful and appreciated :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hendra</title>
		<link>http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/#comment-886820</link>
		<dc:creator>hendra</dc:creator>
		<pubDate>Mon, 25 Jul 2011 07:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=266#comment-886820</guid>
		<description>if i want to add score in this game, how the way??
would you help me for the coding..
thanks before..</description>
		<content:encoded><![CDATA[<p>if i want to add score in this game, how the way??<br />
would you help me for the coding..<br />
thanks before..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafael</title>
		<link>http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/#comment-849940</link>
		<dc:creator>Rafael</dc:creator>
		<pubDate>Fri, 10 Jun 2011 17:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=266#comment-849940</guid>
		<description>Hello! Good job with this blog. Very useful for all flash game programmers. TankYou.

There are a little &quot;bug&quot; at this memory game(if you are trying to use inside a MovieClip) at the lines:

for (x=1; x&lt;=4; x++) {
	for (y=1; y&lt;=4; y++) {

with this code the IDE move all the content of the game + 5 pixels to botton(y++) and 5 pixels to the right. I just advice you to put var before these variables. Staying like this:

for (var x=1; x&lt;=4; x++) {
	for (var y=1; y&lt;=4; y++) {

So the flash doesn´t get the property of the movieclip you are programing in. Althought this is a especific case.

Ty</description>
		<content:encoded><![CDATA[<p>Hello! Good job with this blog. Very useful for all flash game programmers. TankYou.</p>
<p>There are a little &#8220;bug&#8221; at this memory game(if you are trying to use inside a MovieClip) at the lines:</p>
<p>for (x=1; x&lt;=4; x++) {<br />
	for (y=1; y&lt;=4; y++) {</p>
<p>with this code the IDE move all the content of the game + 5 pixels to botton(y++) and 5 pixels to the right. I just advice you to put var before these variables. Staying like this:</p>
<p>for (var x=1; x&lt;=4; x++) {<br />
	for (var y=1; y&lt;=4; y++) {</p>
<p>So the flash doesn´t get the property of the movieclip you are programing in. Althought this is a especific case.</p>
<p>Ty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: silvith</title>
		<link>http://www.emanueleferonato.com/2008/05/02/creation-of-a-matching-game-with-flash-and-as3/#comment-839615</link>
		<dc:creator>silvith</dc:creator>
		<pubDate>Mon, 23 May 2011 11:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=266#comment-839615</guid>
		<description>I changed the code somewhat to add a rest_game function. 
In the .fla-file I added a button to the library, linked as playAgainBtn

In the as.file I moved the construction of the game to an internal function and added code to create the button on the stage.
I also added a public reset_game function. I first emptied the stage and then called the constructor function to rebuild the game.

package {
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import flash.events.TimerEvent;
	import flash.utils.Timer;
	public class color_match extends Sprite {
		private var first_tile:colors;
		private var second_tile:colors;
		private var pause_timer:Timer;

		public function color_match() {
			constructColorMatch();
		}
		internal function constructColorMatch():void {
			var colordeck:Array = new Array(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8);
			for (x=1; x&lt;=4; x++) {
				for (y=1; y 0) {
				removeChildAt(0);
			}
			constructColorMatch();
		}
	}
}</description>
		<content:encoded><![CDATA[<p>I changed the code somewhat to add a rest_game function.<br />
In the .fla-file I added a button to the library, linked as playAgainBtn</p>
<p>In the as.file I moved the construction of the game to an internal function and added code to create the button on the stage.<br />
I also added a public reset_game function. I first emptied the stage and then called the constructor function to rebuild the game.</p>
<p>package {<br />
	import flash.display.Sprite;<br />
	import flash.events.MouseEvent;<br />
	import flash.events.TimerEvent;<br />
	import flash.utils.Timer;<br />
	public class color_match extends Sprite {<br />
		private var first_tile:colors;<br />
		private var second_tile:colors;<br />
		private var pause_timer:Timer;</p>
<p>		public function color_match() {<br />
			constructColorMatch();<br />
		}<br />
		internal function constructColorMatch():void {<br />
			var colordeck:Array = new Array(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8);<br />
			for (x=1; x&lt;=4; x++) {<br />
				for (y=1; y 0) {<br />
				removeChildAt(0);<br />
			}<br />
			constructColorMatch();<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 6/11 queries in 0.024 seconds using disk: basic

Served from: www.emanueleferonato.com @ 2012-02-11 13:06:41 -->
