<?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; 25 lines</title>
	<atom:link href="http://www.interactionfigure.nl/tag/25-lines/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>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_1400930276"
			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_1400930276"
			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>
	</channel>
</rss>
