<?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>Eamonn Faherty &#187; as3</title>
	<atom:link href="http://blog.eamonnfaherty.co.uk/tag/as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.eamonnfaherty.co.uk</link>
	<description>technology enthusiast and public speaker</description>
	<lastBuildDate>Tue, 21 Jun 2011 10:14:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Unit testing in actionscript3</title>
		<link>http://blog.eamonnfaherty.co.uk/2011/02/15/unit-testing-in-actionscript3/</link>
		<comments>http://blog.eamonnfaherty.co.uk/2011/02/15/unit-testing-in-actionscript3/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 23:14:25 +0000</pubDate>
		<dc:creator>eamonn</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flashtdd]]></category>
		<category><![CDATA[tdd]]></category>

		<guid isPermaLink="false">http://blog.eamonnfaherty.co.uk/?p=350</guid>
		<description><![CDATA[I was asked by a friend recently to point him in the direction of some advice on unit testing within actionscript 3. I thought it may be useful to others so here is the email with some addition descriptions: What is unit testing Unit tests are methods that run in order to verify the output of a method is what is expected when given a predefined input. This is useful as you can check if your code does what it should. There is a whole world of information on this on the internet. Check out test driven development. History ThereRead more


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I was asked by a friend recently to point him in the direction of some advice on unit testing within actionscript 3.  I thought it may be useful to others so here is the email with some addition descriptions:</p>
<p><strong>What is unit testing</strong><br />
Unit tests are methods that run in order to verify the output of a method is what is expected when given a predefined input.  This is useful as you can check if your code does what it should.  There is a whole world of information on this on the internet.  Check out test driven development.</p>
<p><strong>History</strong><br />
There used to be a few different unit testing frameworks &#8211; flexunit, fluint and asunit.  asunit was the fastest to run but has not been too popular.  I am not sure why.  Fluint was a flex-centric testing framework with stuff like ui impersonator (mocking).  Flexunit was the most used.</p>
<p><strong>Current</strong><br />
Flexunit was taken on (again) by Adobe and merged with fluint.  After adobe took it on again they named it version 4, probably to bring versioning inline with Flash Builder and flex.  with this change they improved the API to introduce metadata for methods so that they are run before, after and as test methods. It is now distributed with hamcrest (same as the java hamcrest library) and a number of runners and listeners.  It is the most used and it is the one i would recommend.</p>
<p><strong>How it works</strong><br />
You write the unit test in any of the supported styles (flexunit 1, flexunit 4 or fluent or maybe even in another style) and you mark them to run with the associated runner (using metadata).  You then run the tests using that test runner.  Whilst the test runs a listener is also run.  There are multiple test listeners, they are for different environments &#8211; to be run on a ci box, in the browser, in the IDE etc.</p>
<p><strong>Continuous Integration</strong><br />
You cannot currently run unit tests without a flash player.  You cannot currently run a flash player without a virtual frame buffer (think that is the term) or without a window manager running. With hudson (or jenkins now) you can install and run the vnc plugin, this has been the easiest way I have found so far.  This takes care of all that stuff for you.  It even deals with multiple vnc sessions at the same time if you have more than one hudson executor at a time.</p>
<p><strong>Coverage and static analysis</strong><br />
You can get coverage from running flexcover and there is a flex pmd library released by adobe &#8211; there is the usual pmd offering and a cpd plugin.</p>
<p><strong>How to run it all</strong><br />
you can run it all using maven (using the flexmojo stuff) or you can roll out your own ant stuff.  Rolling out your own ant stuff is the way to go if you have a complicated dependencies system (like at my last job), otherwise if you just want to get the job done maven is probably the way to go.</p>
<p>I will attach a working example project tomorrow.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.eamonnfaherty.co.uk/2011/02/15/unit-testing-in-actionscript3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jiglibflash First Experiences</title>
		<link>http://blog.eamonnfaherty.co.uk/2010/07/22/jiglibflash-first-experiences/</link>
		<comments>http://blog.eamonnfaherty.co.uk/2010/07/22/jiglibflash-first-experiences/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 19:56:53 +0000</pubDate>
		<dc:creator>eamonn</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[jiglibflash]]></category>
		<category><![CDATA[papervision]]></category>

		<guid isPermaLink="false">http://blog.eamonnfaherty.co.uk/?p=299</guid>
		<description><![CDATA[I have been playing around with jiglibflash. It is a rigid body physics engine. I have been looking at example projects like this. I am working on a secret project at work and I thought it would be good to share what I have learned. I want to point out that I had no 3d experience before I started this! So you should be able to do this too! I have been using papervision to render a texture map. It takes a black and white jpeg which marks shallower and higher areas on a terrain. Papervision converts this into aRead more


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I have been playing around with <a href="http://www.jiglibflash.com/blog/">jiglibflash</a>.  It is a rigid body physics engine.  I have been looking at example projects like <a href="http://www.everydayflash.com/blog/index.php/2009/04/23/jiglibflash-3d-physics/">this</a>.  </p>
<p>I am working on a secret project at work and I thought it would be good to share what I have learned.  I want to point out that I had no 3d experience before I started this!  So you should be able to do this too! </p>
<p>I have been using <a href="http://blog.papervision3d.org/">papervision</a> to render a texture map.  It takes a black and white jpeg which marks shallower and higher areas on a terrain.  <a href="http://blog.papervision3d.org/">Papervision</a> converts this into a 3d terrain, mountains and ditches.  I also have a car which is loaded from a dae file.  <a href="http://blog.papervision3d.org/">Papervision</a> loads this file and renders it.  I am then using Jiglibflash to create JBoxes, JSpheres and others.  These &#8216;J&#8217; shapes are used for the collision detection.  You can even have a <a href="http://blog.papervision3d.org/">Papervision</a> sphere inside a JBox and the physics engine will treat it as a box.  It does all the collision detections for you.  It takes care of friction and gravity.  You can apply forces to the shapes.  It is really straight forward handling simple shapes.  The next stage of my project is to start describing complex shapes using these J shapes.  It is going to be tough!!! </p>
<p>Using these libraries has been great! It has been a bit of a pain as Jiglibflash uses <a href="http://blog.papervision3d.org/">Papervision</a> (you can also choose to use <a href="http://www.away3d.com">Away3D</a>) and you need to ensure you use working sets of <a href="http://www.jiglibflash.com/blog/">Jiglibflash</a> and <a href="http://blog.papervision3d.org/">Papervision</a>.  A lot of the examples use strange combinations of versions so beware!</p>
<p>I will post the other stuff I discover as I discover it!</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.eamonnfaherty.co.uk/2010/07/22/jiglibflash-first-experiences/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Design Patterns for Actionscript 3</title>
		<link>http://blog.eamonnfaherty.co.uk/2009/10/31/design-patterns-for-actionscript-3/</link>
		<comments>http://blog.eamonnfaherty.co.uk/2009/10/31/design-patterns-for-actionscript-3/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 23:34:27 +0000</pubDate>
		<dc:creator>eamonn</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[design patterns]]></category>
		<category><![CDATA[lfpug]]></category>

		<guid isPermaLink="false">http://blog.eamonnfaherty.co.uk/?p=227</guid>
		<description><![CDATA[I recently did my first public talk! It was at LFPUG (London Flash Platform UserGroup). Here are the details I think it went really well. I had some very kind feedback via email and twitter and also on the night in person! A few people have requested that I upload the examples I used and the slides so here they are. Over the next few weeks I am going to be posting example patterns with more information, in more depth than I did on the night. If you want me to cover a pattern please post a comment with theRead more


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I recently did my first public talk! It was at LFPUG (London Flash Platform UserGroup).</p>
<p><a href="http://www.lfpug.com/29th-october-2009-29102009/">Here are the details</a></p>
<p>I think it went really well. I had some very kind feedback via email and twitter and also on the night in person!</p>
<p>A few people have requested that I upload the examples I used and the slides so here they are.</p>
<p>Over the next few weeks I am going to be posting example patterns with more information, in more depth than I did on the night.</p>
<p>If you want me to cover a pattern please post a comment with the pattern name and I will bump it up in the list.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.eamonnfaherty.co.uk/2009/10/31/design-patterns-for-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

