<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jop Wielens &#187; as3</title>
	<atom:link href="http://www.interactionfigure.nl/tag/as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.interactionfigure.nl</link>
	<description>Actionscript experiments and general weirdness</description>
	<lastBuildDate>Wed, 14 Jul 2010 14:31:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Having fun with Face Tracking and MP3 Pitch control</title>
		<link>http://www.interactionfigure.nl/2009/having-fun-with-face-tracking-and-mp3-pitch-control/</link>
		<comments>http://www.interactionfigure.nl/2009/having-fun-with-face-tracking-and-mp3-pitch-control/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 08:39:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[webcam]]></category>
		<category><![CDATA[face tracking]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[microphone]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[pan flute]]></category>
		<category><![CDATA[pitch]]></category>

		<guid isPermaLink="false">http://www.interactionfigure.nl/?p=82</guid>
		<description><![CDATA[There is a lot of cool open source stuff coming out this year in the Flash community. Earlier this year we saw the Flash Face Tracking and 2 months ago Andre Michelle showed how easy it was to control the pitch of a sound in Flash 10. I love all that stuff. So I though, [...]]]></description>
			<content:encoded><![CDATA[<p>There is a lot of cool open source stuff coming out this year in the Flash community. Earlier this year we saw the <a title="Flash Face Tracking" href="http://www.squidder.com/2009/02/26/realtime-face-detection-in-flash/" target="_self">Flash Face Tracking</a> and 2 months ago <a title="Andre Michelle - Blog" href="http://blog.andre-michelle.com/" target="_self">Andre Michelle</a> showed how easy it was to <a title="Andre Michelle - Pitch Control in FP10" href="http://blog.andre-michelle.com/2009/pitch-mp3/" target="_self">control the pitch of a sound</a> in Flash 10. I love all that stuff.</p>
<p>So I though, what can I build to have a little fun with all this open source loveliness. A webcam/mic driven pan flute of course! <img src='http://www.interactionfigure.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a title="Source" href="http://www.interactionfigure.nl/source/bottleblower.zip">Here </a>is the source from this experiment.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_BottleBlower_1275839305"
			class="flashmovie"
			width="600"
			height="400">
	<param name="movie" value="http://www.interactionfigure.nl/swfs/BottleBlower.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.interactionfigure.nl/swfs/BottleBlower.swf"
			name="fm_BottleBlower_1275839305"
			width="600"
			height="400">
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.interactionfigure.nl/2009/having-fun-with-face-tracking-and-mp3-pitch-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alice in Wonderland Papervision site is live</title>
		<link>http://www.interactionfigure.nl/2009/alice-in-wonderland-papervision-site-is-live/</link>
		<comments>http://www.interactionfigure.nl/2009/alice-in-wonderland-papervision-site-is-live/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 08:11:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Digital Outlook]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[alice in wonderland]]></category>
		<category><![CDATA[papervision]]></category>
		<category><![CDATA[Tim Burton]]></category>

		<guid isPermaLink="false">http://www.interactionfigure.nl/?p=68</guid>
		<description><![CDATA[Great day yesterday. After all the hard work my colleague Graham and I put in, the site for the new Tim Burton movie has finally gone live. For this project we wanted to showcase the characters in a way that made sense for the movie. So we came up with the idea of having them [...]]]></description>
			<content:encoded><![CDATA[<p>Great day yesterday. After all the hard work my colleague Graham and I put in, the site for the new Tim Burton movie has finally gone live.</p>
<div class="wp-caption alignnone" style="width: 560px"><a href="http://www2.disney.co.uk/DisneyMovies/alice/"><img title="Alice in Wonderland" src="http://www.interactionfigure.nl/images/alice_site.jpg" alt="Alice in Wonderland screen shot" width="550" height="336" /></a><p class="wp-caption-text">Alice in Wonderland screen shot</p></div>
<p>For this project we wanted to showcase the characters in a way that made sense for the movie. So we came up with the idea of having them fly past while you (Alice) are falling down the rabbit hole.</p>
<p>The site is my 3rd Papervision site and I&#8217;m starting to understand more and more about creating a good working site using this technology. It is really important to re-use your objects and keep an eye on the memory used. If you&#8217;re not careful, you can grind a site to a halt quite easily.</p>
<p>The tunnel texture is a looping Movieclip that I put on a cylinder. The camera is inside this cylinder. Then I have a bunch of flat planes with things like a watch, a chair, a crown etc mapped on top of them. They fly past and as soon as they go off screen, they loop back from the bottom again.</p>
<p>The main object of course is the picture frame. I first started off with just a box but that didn&#8217;t give the right feel. So I created this more detailed shape that has all the edges and depth of a real picture frame. Graham then created the textures and I put it all together. I love how much more depth it gives the frame.</p>
<p>I use the interactive moviematerial for the front (character) and back (downl0ads) sections. I then added the neat things like the FileReference style download of the icons, so we didn&#8217;t need a popup.</p>
<p>Have a look at the site here: <a title="Alice in Wonderland site" href="http://www2.disney.co.uk/DisneyMovies/alice/" target="_self">http://www2.disney.co.uk/DisneyMovies/alice/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactionfigure.nl/2009/alice-in-wonderland-papervision-site-is-live/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Kaleidoscope fun in Flash. Now with superfast image export!</title>
		<link>http://www.interactionfigure.nl/2009/kaleidoscope-fun-in-flash-now-with-superfast-image-export/</link>
		<comments>http://www.interactionfigure.nl/2009/kaleidoscope-fun-in-flash-now-with-superfast-image-export/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 10:40:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[webcam]]></category>
		<category><![CDATA[ByteArray]]></category>
		<category><![CDATA[fast]]></category>
		<category><![CDATA[image export]]></category>
		<category><![CDATA[kaleidoscope]]></category>

		<guid isPermaLink="false">http://www.interactionfigure.nl/?p=48</guid>
		<description><![CDATA[I found this supercool Adobe AS3 library that uses ByteArray to export images superfast. The only thing the PHP does is put a header on it and serve it up. Wicked. And what better way to test that than building a webcam Kaleidoscope. Hours of fun! Here is the source if you&#8217;re interested. 
]]></content:encoded>
			<wfw:commentRss>http://www.interactionfigure.nl/2009/kaleidoscope-fun-in-flash-now-with-superfast-image-export/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Colour tracking with the webcam in Flash</title>
		<link>http://www.interactionfigure.nl/2009/colour-tracking-with-the-webcam-in-flash/</link>
		<comments>http://www.interactionfigure.nl/2009/colour-tracking-with-the-webcam-in-flash/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 09:34:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[webcam]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[colour]]></category>
		<category><![CDATA[tracking]]></category>

		<guid isPermaLink="false">http://www.interactionfigure.nl/?p=29</guid>
		<description><![CDATA[Something I wanted to do for a while. Track a colour using your webcam in Flash. I draw the webcam into Bitmapadata so I can play around with it. If you take the getColorBoundsRect straight from the raw bitmapdata it will be very hard to get something useful as you just have to many single [...]]]></description>
			<content:encoded><![CDATA[<p>Something I wanted to do for a while. Track a colour using your webcam in Flash. I draw the webcam into Bitmapadata so I can play around with it. If you take the getColorBoundsRect straight from the raw bitmapdata it will be very hard to get something useful as you just have to many single pixels and colours to analise. So I implement a little trick that makes it better to analise. First I blur the video so it smooths the colours. Then I turn it into a 8 channel image.</p>
<p>After that I just layer a fresh video feed that isnt distorted on top and start drawing based on the colour and position.</p>
<p>Enjoy! You can grab the source <a title="Colour tracking source" onclick="javascript:pageTracker._trackPageview('/downloads/source/WebcamColourTracking.zip');" href="http://www.interactionfigure.nl/source/WebcamColourTracking.zip">here </a>if you want.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_WebcamColourTracking_384383200"
			class="flashmovie"
			width="600"
			height="450">
	<param name="movie" value="http://www.interactionfigure.nl/swfs/WebcamColourTracking.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.interactionfigure.nl/swfs/WebcamColourTracking.swf"
			name="fm_WebcamColourTracking_384383200"
			width="600"
			height="450">
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.interactionfigure.nl/2009/colour-tracking-with-the-webcam-in-flash/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Flash Facetracking kicks ass</title>
		<link>http://www.interactionfigure.nl/2009/flash-facetracking-kicks-ass/</link>
		<comments>http://www.interactionfigure.nl/2009/flash-facetracking-kicks-ass/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 11:49:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[webcam]]></category>
		<category><![CDATA[face]]></category>
		<category><![CDATA[ring]]></category>
		<category><![CDATA[tracking]]></category>

		<guid isPermaLink="false">http://www.interactionfigure.nl/?p=27</guid>
		<description><![CDATA[(This is a repost from March 2009, my blog crashed in the meantime ) Last week I noticed a couple Flash guys jumping on the face tracking code. The legendary Mario Klingemann (aka Quasimondo) did a great example and shared his source code. I really appreciate the fact that people are sharing this source code [...]]]></description>
			<content:encoded><![CDATA[<p>(This is a repost from March 2009, my blog crashed in the meantime <img src='http://www.interactionfigure.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</p>
<p>Last week I noticed a couple Flash guys jumping on the face tracking code. The legendary Mario Klingemann (aka Quasimondo) did a <a href="http://incubator.quasimondo.com/flash/manic_mirror.php">great example</a> and shared his <a title="Source code" href="http://www.quasimondo.com/archives/000687.php">source code.</a></p>
<p>I really appreciate the fact that people <a href="http://www.squidder.com/2009/02/26/realtime-face-detection-in-flash/">are sharing</a> <a href="http://www.libspark.org/svn/as3/Marilena/">this source code</a> for others to play with. Good work!</p>
<p>I totaly love the idea of being able to track your face with the webcam. I had a little demo working yesterday (st Patricks day) where I drop a green hat on your head. Hours of fun <img src='http://www.interactionfigure.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .<br />
Today on the way into work I remembered the movie <a href="http://www.imdb.com/title/tt0298130/">The Ring</a> where peoples faces got blurred in pictures when they were about to die. So 20 minutes of playing around with Mario’s source code later and you can see the result below.</p>
<p>I can’t wait to spend a bit more time on this code and hopefully will be doing some client work using this technology soon. Fingers crossed.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_facedetector_cam_ring_927584365"
			class="flashmovie"
			width="550"
			height="400">
	<param name="movie" value="http://www.interactionfigure.nl/swfs/facedetector_cam_ring.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.interactionfigure.nl/swfs/facedetector_cam_ring.swf"
			name="fm_facedetector_cam_ring_927584365"
			width="550"
			height="400">
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.interactionfigure.nl/2009/flash-facetracking-kicks-ass/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>25 lines of code contest</title>
		<link>http://www.interactionfigure.nl/2009/25-lines-of-code-contest/</link>
		<comments>http://www.interactionfigure.nl/2009/25-lines-of-code-contest/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 11:43:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[25 lines]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[keith peters]]></category>

		<guid isPermaLink="false">http://www.interactionfigure.nl/?p=21</guid>
		<description><![CDATA[Keith Peters organised a Flash coding contest where you could do anything you want as long as it was AS3 and didn’t exceed 25 lines. Very cool. The contest closed last night so I can now post my entry. It’s not rocket science but I think it looks cool . Have fun playing and enjoy [...]]]></description>
			<content:encoded><![CDATA[<p><a onclick="javascript:pageTracker._trackPageview('/outbound/article/www.25lines.com');" href="http://www.25lines.com/">Keith Peters</a> organised a <a title="25 lines contest" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.25lines.com');" href="http://www.25lines.com/">Flash coding contest</a> where you could do anything you want as long as it was AS3 and didn’t exceed 25 lines. Very cool.</p>
<p>The contest closed last night so I can now post my entry. It’s not rocket science but I think it looks cool <img src='http://www.interactionfigure.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . Have fun playing and enjoy the code if you like.</p>
<p><script type="text/javascript">
	// &lt;![CDATA[</p>
<p>	var so_1549994807 = new SWFObject("http://www.interactionfigure.nl/swfs/25lines.swf","fm_25lines_1549994807","600","600","6","","","","","");
	so_1549994807.write("so_targ_25lines_1549994807");</p>
<p>	// ]]&gt;
</script></p>
<blockquote><p><em><br />
[SWF(width=800, height=800, backgroundColor=0x000000, frameRate=24)]<br />
stage.align = StageAlign.TOP_LEFT;<br />
stage.scaleMode = StageScaleMode.NO_SCALE;</em></p>
<p><em>//25 lines begins here<br />
var bmdDisplay:BitmapData = new BitmapData(800, 800, true, 0×00000000);<br />
var drawSprite:Sprite = new Sprite();<br />
var insideDrawSprite:Sprite = new Sprite();<br />
var aPoints:Array = [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]];<br />
var aPositions:Array = [[0,0,1,1],[800,0,-1,1],[800,800,-1,-1],[0,800,1,-1]];<br />
this.addChild(new Bitmap(bmdDisplay));<br />
drawSprite.addChild(insideDrawSprite);<br />
this.addEventListener(Event.ENTER_FRAME, updateStage);<br />
function updateStage(e:Event):void {<br />
bmdDisplay.applyFilter(bmdDisplay, bmdDisplay.rect, new Point(0, 0), new ColorMatrixFilter([1, 0, 0, 0, 0, 0, 0.85, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0.92, 0]));<br />
insideDrawSprite.graphics.clear();<br />
insideDrawSprite.graphics.beginFill(0xFFFFFF);<br />
for (var i:uint = 0; i&lt;aPoints.length; i++) {<br />
insideDrawSprite.graphics.lineTo(aPoints[i][0], aPoints[i][1]);<br />
}<br />
insideDrawSprite.graphics.endFill();<br />
for(i=0;i&lt;aPositions.length;i++){<br />
insideDrawSprite.x = aPositions[i][0];<br />
insideDrawSprite.y = aPositions[i][1];<br />
insideDrawSprite.scaleX = aPositions[i][2];<br />
insideDrawSprite.scaleY = aPositions[i][3];<br />
bmdDisplay.draw(drawSprite);<br />
}<br />
aPoints = [aPoints[1], aPoints[2], aPoints[3], aPoints[4], aPoints[5], aPoints[6], aPoints[7],      aPoints[8], aPoints[9], [this.mouseX, this.mouseY]];<br />
};</em></p>
<p><em>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_25lines_967789276"
			class="flashmovie"
			width="600"
			height="600">
	<param name="movie" value="http://www.interactionfigure.nl/swfs/25lines.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.interactionfigure.nl/swfs/25lines.swf"
			name="fm_25lines_967789276"
			width="600"
			height="600">
	<!--<![endif]-->
		<em><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></em></p>
<p><em>
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></em><br />
</em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.interactionfigure.nl/2009/25-lines-of-code-contest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conway’s Game of Life in Flash</title>
		<link>http://www.interactionfigure.nl/2009/conways-game-of-life-in-flash/</link>
		<comments>http://www.interactionfigure.nl/2009/conways-game-of-life-in-flash/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 15:45:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[conway]]></category>
		<category><![CDATA[game of life]]></category>

		<guid isPermaLink="false">http://www.interactionfigure.nl/?p=3</guid>
		<description><![CDATA[Sorry, not the most original thing to build but it felt like I had to do it I love that something that is based on only 4 simple rules can create something so cool. Have a read through this article on Wikipedia if you want to know more about it. These are the rules: Any [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry, not the most original thing to build but it felt like I had to do it <img class="wp-smiley" src="../wp-includes/images/smilies/icon_smile.gif" alt=":-)" /></p>
<p>I love that something that is based on only 4 simple rules can create something so cool. Have a read through <a onclick="javascript:pageTracker._trackPageview('/outbound/article/en.wikipedia.org');" href="http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life">this article on Wikipedia</a> if you want to know more about it.</p>
<p>These are the rules:</p>
<blockquote>
<ol>
<li> Any live cell with fewer than two live neighbors dies, as if by loneliness.</li>
<li>Any live cell with more than three live neighbors dies, as if by overcrowding.</li>
<li>Any live cell with two or three live neighbors lives, unchanged, to the next generation.</li>
<li>Any dead cell with exactly three live neighbors comes to life.</li>
</ol>
</blockquote>
<p>Have fun playing! <a onclick="javascript:pageTracker._trackPageview('/downloads/source/game_of_life.zip');" href="http://www.interactionfigure.nl/source/game_of_life.zip">Here is the source</a> if you’re interested.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_game_of_life_1579469929"
			class="flashmovie"
			width="600"
			height="400">
	<param name="movie" value="http://www.interactionfigure.nl/swfs/game_of_life.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.interactionfigure.nl/swfs/game_of_life.swf"
			name="fm_game_of_life_1579469929"
			width="600"
			height="400">
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.interactionfigure.nl/2009/conways-game-of-life-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
