<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Building a Drag-and-Drop Jigsaw Puzzle</title>
	<link>http://www.quip.net/blog/2006/flash/building-jigsaw-puzzle</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Tue, 06 Jan 2009 10:48:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/building-jigsaw-puzzle#comment-6826</link>
		<pubDate>Thu, 30 Nov 2006 04:19:24 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/building-jigsaw-puzzle#comment-6826</guid>
					<description>Alex,

Your question is a good one, definitely.  Part 2 of that Community MX article is likely to give you considerably more guidance, because it steps through all the methods called by the &lt;code&gt;buildPuzzle()&lt;/code&gt; method discussed in the first one.  The &lt;code&gt;drawAndApplyMask()&lt;/code&gt; method is responsible for &quot;cutting&quot; the image into rectangles, so you would skip that.  Instead of attaching the same image repeatedly (then masking), as the current version does, you could attach a series of pre-cut images from the Library.  It might help if you named your Library assets sequentially, so you could pull them with a &lt;code&gt;for&lt;/code&gt; loop interator.

Go ahead an experiment with it!  I try to make my Community MX articles as informative as they are fun.  You might consider a free trial membership, so you can get Part 2 without charge (as well as a huge selection of other useful articles).</description>
		<content:encoded><![CDATA[<p>Alex,</p>
<p>Your question is a good one, definitely.  Part 2 of that Community MX article is likely to give you considerably more guidance, because it steps through all the methods called by the <code>buildPuzzle()</code> method discussed in the first one.  The <code>drawAndApplyMask()</code> method is responsible for &#8220;cutting&#8221; the image into rectangles, so you would skip that.  Instead of attaching the same image repeatedly (then masking), as the current version does, you could attach a series of pre-cut images from the Library.  It might help if you named your Library assets sequentially, so you could pull them with a <code>for</code> loop interator.</p>
<p>Go ahead an experiment with it!  I try to make my Community MX articles as informative as they are fun.  You might consider a free trial membership, so you can get Part 2 without charge (as well as a huge selection of other useful articles).
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Alex</title>
		<link>http://www.quip.net/blog/2006/flash/building-jigsaw-puzzle#comment-6697</link>
		<pubDate>Mon, 27 Nov 2006 21:38:08 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/building-jigsaw-puzzle#comment-6697</guid>
					<description>Yea that makes sense, but what if you didnt programmatically draw the puzzle shapes, but had them as MC in your library? Would that be hard to implement?</description>
		<content:encoded><![CDATA[<p>Yea that makes sense, but what if you didnt programmatically draw the puzzle shapes, but had them as MC in your library? Would that be hard to implement?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/building-jigsaw-puzzle#comment-6669</link>
		<pubDate>Mon, 27 Nov 2006 07:40:20 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/building-jigsaw-puzzle#comment-6669</guid>
					<description>Alex,

The rectangular pieces you see are innately a part of the &lt;code&gt;CMXJigsawPuzzle&lt;/code&gt; class code.  To replace those shapes with actual jigsaw puzzle pieces, you'd have to re-write the area that draws the rectangular masks (lines 130 &amp;#8211; 148).  It's something I'm interested in figuring out myself, but haven't yet taken the time to analyze.  My hunch is that it would take longer to figure out a jigsaw shape algorithm than it would to figure out the rest of the code.</description>
		<content:encoded><![CDATA[<p>Alex,</p>
<p>The rectangular pieces you see are innately a part of the <code>CMXJigsawPuzzle</code> class code.  To replace those shapes with actual jigsaw puzzle pieces, you&#8217;d have to re-write the area that draws the rectangular masks (lines 130 &ndash; 148).  It&#8217;s something I&#8217;m interested in figuring out myself, but haven&#8217;t yet taken the time to analyze.  My hunch is that it would take longer to figure out a jigsaw shape algorithm than it would to figure out the rest of the code.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Alex</title>
		<link>http://www.quip.net/blog/2006/flash/building-jigsaw-puzzle#comment-6640</link>
		<pubDate>Sun, 26 Nov 2006 18:19:10 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/building-jigsaw-puzzle#comment-6640</guid>
					<description>Hi David,

I had a good read through the drag-and-drop Jigsaw puzzle, very nicely done. Still getting my head around it.

just one question though - How would I be able to replace the squares with actual jigsaw puzzle pieces?

Regards
Alex</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>I had a good read through the drag-and-drop Jigsaw puzzle, very nicely done. Still getting my head around it.</p>
<p>just one question though - How would I be able to replace the squares with actual jigsaw puzzle pieces?</p>
<p>Regards<br />
Alex
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
