<?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>Clint Hannaford - Portfolio</title>
	<atom:link href="http://www.pleribus.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pleribus.com</link>
	<description>Clint Hannaford is a Senior Developer at Boffswana, working on Flash, Unity and iPhone projects.</description>
	<lastBuildDate>Thu, 20 Oct 2011 00:47:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Greenseas: The Friendly Seas</title>
		<link>http://www.pleribus.com/index.php/2011/10/greenseas-the-friendly-seas/</link>
		<comments>http://www.pleribus.com/index.php/2011/10/greenseas-the-friendly-seas/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 22:37:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash/Actionscript]]></category>
		<category><![CDATA[Folio]]></category>

		<guid isPermaLink="false">http://www.pleribus.com/?p=320</guid>
		<description><![CDATA[Greenseas: The Friendly Seas is a project all about befriending fish.  Utilising face tracking and smile detection in Flash, users can charm the fish, increasing it&#8217;s friendship levels.  The user has the opportunity to befriend the Longhorn Cowfish, the Tasmanian Spotted Handfish, and the Dugong, resulting in donations on their behalf for various [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.greenseas.com.au">Greenseas: The Friendly Seas</a> is a project all about befriending fish.  Utilising face tracking and smile detection in Flash, users can charm the fish, increasing it&#8217;s friendship levels.  The user has the opportunity to befriend the Longhorn Cowfish, the Tasmanian Spotted Handfish, and the Dugong, resulting in donations on their behalf for various marine conservation funds.</p>
<p>The user has to be careful not to scare away the timid creatures of the sea with fast movements. Once the user has befriended the fish through smiles, head tilts and tickles, they are given a photo of themselves and their new friend (captured when smiles are detected of course), to share with their real life friends on facebook.</p>
<p>The site uses a range of technologies and libraries, including Away3D, Facebook API, Robotlegs, Face Detection, Smile Detection and Colour Tracking.  </p>
<p><iframe src="http://player.vimeo.com/video/30775280?title=0&amp;byline=0" width="457" height="257" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe></p>
<p>A visualisation of the team developing Greenseas.<br />
<iframe src="http://player.vimeo.com/video/30422819?title=0&amp;byline=0&amp;portrait=0" width="457" height="257" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pleribus.com/index.php/2011/10/greenseas-the-friendly-seas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>StringAR Showcase App</title>
		<link>http://www.pleribus.com/index.php/2011/02/stringar-showcase-app/</link>
		<comments>http://www.pleribus.com/index.php/2011/02/stringar-showcase-app/#comments</comments>
		<pubDate>Sat, 12 Feb 2011 23:08:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Folio]]></category>
		<category><![CDATA[Unity3D]]></category>

		<guid isPermaLink="false">http://www.pleribus.com/?p=330</guid>
		<description><![CDATA[String Labs approached Boffswana to assist in creating a Showcase iOS Application for their new technology StringAR.
Using our little green character Proto, we were able to quickly create a simple demonstration, that allowed users to touch anywhere on the screen and have him walk to that location.
You can download the String Showcase for yourself on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.poweredbystring.com">String Labs</a> approached Boffswana to assist in creating a Showcase iOS Application for their new technology StringAR.</p>
<p>Using our little green character Proto, we were able to quickly create a simple demonstration, that allowed users to touch anywhere on the screen and have him walk to that location.</p>
<p>You can download the<a href="http://itunes.apple.com/us/app/string-augmented-reality-showcase/id417606536?mt=8"> String Showcase</a> for yourself on iTunes.</p>
<p><iframe src="http://player.vimeo.com/video/19157285?title=0&amp;byline=0&amp;portrait=0" width="457" height="343" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pleribus.com/index.php/2011/02/stringar-showcase-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Marc Ecko Digital Muse</title>
		<link>http://www.pleribus.com/index.php/2010/10/marc-ecko-digital-muse/</link>
		<comments>http://www.pleribus.com/index.php/2010/10/marc-ecko-digital-muse/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 10:55:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Folio]]></category>

		<guid isPermaLink="false">http://www.pleribus.com/?p=304</guid>
		<description><![CDATA[Marc Ecko had a vision of creating a multi-dimensional augmented reality experience and entrusted Boffswana to navigate through this very exciting and uncharted territory in terms of AR content and concept.
The ‘Digital Muse’ provides users an experience of intimate interaction with Lindsay Lohan in a way not seen with AR blurring the line between viewing [...]]]></description>
			<content:encoded><![CDATA[<p>Marc Ecko had a vision of creating a multi-dimensional augmented reality experience and entrusted Boffswana to navigate through this very exciting and uncharted territory in terms of AR content and concept.</p>
<p>The ‘Digital Muse’ provides users an experience of intimate interaction with Lindsay Lohan in a way not seen with AR blurring the line between viewing and interacting with content.</p>
<p>Provocative footage of Lindsay shot for this campaign creates a fantasy narrative and reflects the traditional notions of the femme fatale, and the dangerous and intoxicating woman.</p>
<p>Marc Ecko and his talented team have been fun and inspiring to collaborate with, there has been no shortage of creative vision that is clearly seen in the overall campaign and site.</p>
<p><iframe src="http://player.vimeo.com/video/24376646?portrait=0" width="457" height="257" frameborder="0"></iframe>
<p><a href="http://vimeo.com/24376646">31136621</a> from <a href="http://vimeo.com/user3408853">Pleribus</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>My involvement on this project began with initial prototypes, overall approach for the development team, and assisting the development team working on the website later in the project&#8217;s development cycle to help get it over the line, as well as past code brought in from other projects.</p>
<p>Below is a visualization of the team building Marc Ecko&#8217;s Digital Muse</p>
<p><iframe src="http://player.vimeo.com/video/24376706?portrait=0" width="457" height="257" frameborder="0"></iframe>
<p><a href="http://vimeo.com/24376706">me</a> from <a href="http://vimeo.com/user3408853">Pleribus</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pleribus.com/index.php/2010/10/marc-ecko-digital-muse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samsung &#8211; Mr Know It All</title>
		<link>http://www.pleribus.com/index.php/2010/08/samsung-mr-know-it-all/</link>
		<comments>http://www.pleribus.com/index.php/2010/08/samsung-mr-know-it-all/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 08:28:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Folio]]></category>

		<guid isPermaLink="false">http://www.pleribus.com/?p=290</guid>
		<description><![CDATA[http://www.mrknowitall.com.au/
Boffswana were engaged by Mark (M&#38;C Saatchi Sydney) to develop a website that connected with Facebook to allow users to integrate themselves and their friends into a live action video.
The result is Mr Know It All, a campaign about Samsungs new Social Hub phone, which allows customers to combine all of their social feeds into [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mrknowitall.com.au/">http://www.mrknowitall.com.au/</a></p>
<p>Boffswana were engaged by Mark (M&amp;C Saatchi Sydney) to develop a website that connected with Facebook to allow users to integrate themselves and their friends into a live action video.</p>
<p>The result is Mr Know It All, a campaign about Samsungs new Social Hub phone, which allows customers to combine all of their social feeds into the one interface.</p>
<p>Mr Know It All knows everything, about everybody, in his social circle.  It&#8217;s the Office meets Social Networking.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="457" height="343" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=13874528&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed type="application/x-shockwave-flash" width="457" height="343" src="http://vimeo.com/moogaloop.swf?clip_id=13874528&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/13874528">Samsung &#8211; Mr Know It All</a> from <a href="http://vimeo.com/user3408853">Pleribus</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>The site was built on a combination of the Gaia Framework and RobotLegs, and presented a number of challenging technical hurdles to overcome in a very short timeframe.  RobotLegs allowed the development team to work seamlessly together on various components of the site and rapidly bring them together with little fuss.</p>
<p>A visualisation of the team developing the site:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="457" height="257" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=13876556&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed type="application/x-shockwave-flash" width="457" height="257" src="http://vimeo.com/moogaloop.swf?clip_id=13876556&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/13876556">Developing Mr Know It All</a> from <a href="http://vimeo.com/user3408853">Pleribus</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Awards:</p>
<ul>
<li><a href="http://www.dmnews.com/microsite/article/198513/">Gold for Best Microsite</a> – John Caples International Awards.</li>
<li><a href="http://www.adfest.com/pdf/Winners%20Cyber%20Lotus%20ADFEST2011.pdf">Bronze for Best Use of Online Video</a> – Adfest Cyber Lotus</li>
<li><a href="http://www.adfest.com/pdf/Winners%20Cyber%20Lotus%20ADFEST2011.pdf">Bronze for Best Integrated Cyber Campaign</a> – Adfest Cyber Lotus</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pleribus.com/index.php/2010/08/samsung-mr-know-it-all/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clash Of The Titans &#8211; Release The Kraken</title>
		<link>http://www.pleribus.com/index.php/2010/03/clash-of-the-titans-release-the-kraken/</link>
		<comments>http://www.pleribus.com/index.php/2010/03/clash-of-the-titans-release-the-kraken/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 00:08:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Folio]]></category>
		<category><![CDATA[Unity3D]]></category>

		<guid isPermaLink="false">http://www.pleribus.com/?p=220</guid>
		<description><![CDATA[http://clash-of-the-titans.warnerbros.com/release-the-kraken
Warner Bros. (US) commissioned Boffswana to let users &#8220;Release The Kraken!&#8221; as Zeus (Liam Neeson) bellows in the movie Clash Of The Titans. 
My first commercial Unity3D project at Boffswana, the Augmented Reality application recognises the print out, and places a 3D scene on the paper.  The cove environment extends into the paper as [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://clash-of-the-titans.warnerbros.com/release-the-kraken">http://clash-of-the-titans.warnerbros.com/release-the-kraken</a></p>
<p>Warner Bros. (US) commissioned Boffswana to let users &#8220;Release The Kraken!&#8221; as Zeus (Liam Neeson) bellows in the movie Clash Of The Titans. </p>
<p>My first commercial Unity3D project at Boffswana, the Augmented Reality application recognises the print out, and places a 3D scene on the paper.  The cove environment extends into the paper as if it&#8217;s a window into another dimension.  The highly detailed 3D Kraken emerges from the ocean to a dramatic soundtrack, and the user is able to move the scene, even pushing right into the world to get a closer look.</p>
<p>The user is also able to press S to have the Kraken swipe, and R to make the Kraken roar.</p>
<p>The site was developed to be deployed for other languages easily, through XML and external images.</p>
<p><object width="457" height="257"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=10297761&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=10297761&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="457" height="257"></embed></object>
<p><a href="http://vimeo.com/10297761">Clash Of The Titans &#8211; Release The Kraken</a> from <a href="http://vimeo.com/user3408853">Pleribus</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pleribus.com/index.php/2010/03/clash-of-the-titans-release-the-kraken/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drawing shortcut for MovieClip.graphics</title>
		<link>http://www.pleribus.com/index.php/2010/03/drawing-shortcut-for-movieclip-graphics/</link>
		<comments>http://www.pleribus.com/index.php/2010/03/drawing-shortcut-for-movieclip-graphics/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 03:32:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash/Actionscript]]></category>

		<guid isPermaLink="false">http://www.pleribus.com/?p=204</guid>
		<description><![CDATA[Thought I&#8217;d share this little shortcut that I hadn&#8217;t really come across before, which definitely helps to keep your code that little cleaner when working with MovieClip.graphics in Flash.
1234567891011121314this.grapics.lineStyle&#40;1, 0x00000&#41;;
this.graphics.moveTo&#40;10, 10&#41;;
this.graphics.lineTo&#40;10, 20&#41;;
this.graphics.lineTo&#40;20, 20&#41;;
this.graphics.lineTo&#40;20, 10&#41;;
this.graphics.lineTo&#40;10, 10&#41;;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 
this.graphics.beginFill&#40;0xFF0000&#41;;
this.graphics.drawCircle&#40;40, 40, 20&#41;;
this.graphics.endFill&#40;&#41;;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Thought I&#8217;d share this little shortcut that I hadn&#8217;t really come across before, which definitely helps to keep your code that little cleaner when working with MovieClip.graphics in Flash.</p>
<div class="codecolorer-container actionscript geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">grapics</span>.<span style="color: #0066CC;">lineStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, 0x00000<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">moveTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">20</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">20</span>, <span style="color: #cc66cc;">20</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">20</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0xFF0000<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawCircle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">40</span>, <span style="color: #cc66cc;">40</span>, <span style="color: #cc66cc;">20</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">endFill</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0x00FF00<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawRoundRect</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">40</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">40</span>, <span style="color: #cc66cc;">20</span>, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">endFill</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></td></tr></tbody></table></div>
<p>Can also be written:</p>
<div class="codecolorer-container actionscript geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">with</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">lineStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, 0x00000<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">moveTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">20</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">20</span>, <span style="color: #cc66cc;">20</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">20</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0xFF0000<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; drawCircle<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">40</span>, <span style="color: #cc66cc;">40</span>, <span style="color: #cc66cc;">20</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">endFill</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0x00FF00<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; drawRoundRect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">40</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">40</span>, <span style="color: #cc66cc;">20</span>, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">endFill</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p>Pretty simple, and surprised I hadn&#8217;t seen (or thought of) it before.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pleribus.com/index.php/2010/03/drawing-shortcut-for-movieclip-graphics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Replacing Events with AS3Signals</title>
		<link>http://www.pleribus.com/index.php/2010/02/replacing-events-with-as3signals/</link>
		<comments>http://www.pleribus.com/index.php/2010/02/replacing-events-with-as3signals/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 09:14:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash/Actionscript]]></category>

		<guid isPermaLink="false">http://www.pleribus.com/new_folio/?p=125</guid>
		<description><![CDATA[I&#8217;ve been playing with AS3Signals lately, and think I will be replacing flash events with it on all future projects.
It&#8217;s so simple!
So what is AS3Signals?
AS3Signals is a lightweight replacement for Flash Events written by Robert Penner.
AS3Signals aims to reduces the amount of traditional &#8216;boiler plate&#8217; code required to receive and dispatch messages in Flash.
Why use [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing with AS3Signals lately, and think I will be replacing flash events with it on all future projects.</p>
<p>It&#8217;s so simple!</p>
<p><strong>So what is AS3Signals?</strong></p>
<p><a href="http://github.com/robertpenner/as3-signals" target="_blank">AS3Signals</a> is a lightweight replacement for Flash Events written by <a href="http://robertpenner.com/flashblog/" target="_blank">Robert Penner</a>.</p>
<p>AS3Signals aims to reduces the amount of traditional <em>&#8216;boiler plate&#8217;</em> code required to receive and dispatch messages in Flash.</p>
<p><strong>Why use AS3Signals?</strong></p>
<p>Writing custom events tends to be a bit of a tedious chore on most projects, and I know many developers approach custom Events in different ways.</p>
<p>Some choose to create a single flexible Event with a loosely typed payload (ie. data:Object), while others like myself, like to strongly type events with value objects wherever I can (resulting in many custom event classes per project).</p>
<p>AS3Signals practically does away with the need for custom event classes altogether, as you now simply append any number of parameters to your signal.</p>
<p>The time saved not having to write all of these custom events alone is reason enough to jump into AS3Signals.<br />
<span id="more-125"></span></p>
<p>AS3Signals also brings a few nice features that events don&#8217;t have, such as &#8220;addOnce&#8221; that automatically removes the listener the first time a signal is received, &#8220;removeAll&#8221; which removes all listeners of a given signal, as well as &#8220;NativeSignal&#8221; which allows you to map traditional events (like MouseEvents) to signals.  Finally there is DeluxeSignal which adds the ability to get the target object of a signal, and enables bubbling</p>
<p><strong>So how do I use AS3Signals?</strong></p>
<p>John Lindquist has a<em></em> <a href="http://pv3d.org/2010/01/21/as3-signals-tutorial/" target="_blank">video tutorial</a> that sold the idea and simplicity of AS3Signals to me, and I expect just about any other flash developer who watches it.</p>
<p>I&#8217;ve included my own basic demo and source code below to illustrate just how easy they are to use.</p>
<p><strong>Sample</strong></p>
<p>You can click on the face icon to &#8220;hit&#8221; the player.  The SignalsDemo.as class listens to the hit, kill and click signals from the Player.as class and prints messages to the textfield.</p>

    <div id="swfobj_0">
      AS3 Signals Demo - requires Flash.
    </div>

<p><strong>SignalsDemo.as</strong></p>
<div class="codecolorer-container actionscript geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">package com.<span style="color: #006600;">pleribus</span>.<span style="color: #006600;">as3signalsdemo</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;<br />
<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">/**<br />
&nbsp; &nbsp; &nbsp;* @author Clint Hannaford<br />
&nbsp; &nbsp; &nbsp;*/</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SignalsDemo <span style="color: #0066CC;">extends</span> Sprite <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> player:Player;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> textOutput:<span style="color: #0066CC;">TextField</span>;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> SignalsDemo<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addPlayer<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addTextField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// add signal listeners</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">playerHit</span>.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span>onPlayerHit<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">playerKilled</span>.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span>onPlayerKilled<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">click</span>.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span>onClickPlayer<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> addPlayer<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player = <span style="color: #000000; font-weight: bold;">new</span> Player<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">init</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">30</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">30</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">buttonMode</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>player<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> addTextField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textOutput = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textOutput.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textOutput.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">100</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textOutput.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">350</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textOutput.<span style="color: #0066CC;">height</span> = <span style="color: #cc66cc;">200</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textOutput.<span style="color: #0066CC;">border</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>textOutput<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//Signal Handlers</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onClickPlayer<span style="color: #66cc66;">&#40;</span>event:MouseEvent<span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// Hit the player when clicked on </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">hit</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onPlayerKilled<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">message</span>:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textOutput.<span style="color: #006600;">appendText</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">message</span>+<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">playerHit</span>.<span style="color: #006600;">remove</span><span style="color: #66cc66;">&#40;</span>onPlayerHit<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">playerKilled</span>.<span style="color: #006600;">remove</span><span style="color: #66cc66;">&#40;</span>onPlayerKilled<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">click</span>.<span style="color: #006600;">remove</span><span style="color: #66cc66;">&#40;</span>onClickPlayer<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">removeChild</span><span style="color: #66cc66;">&#40;</span>player<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onPlayerHit<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">message</span>:<span style="color: #0066CC;">String</span>, health:<span style="color: #0066CC;">Number</span><span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textOutput.<span style="color: #006600;">appendText</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">message</span>+<span style="color: #ff0000;">&quot; - health now: &quot;</span>+health+<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>Player.as</strong></p>
<div class="codecolorer-container actionscript geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">package com.<span style="color: #006600;">pleribus</span>.<span style="color: #006600;">as3signalsdemo</span> <span style="color: #66cc66;">&#123;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> org.<span style="color: #006600;">osflash</span>.<span style="color: #006600;">signals</span>.<span style="color: #006600;">natives</span>.<span style="color: #006600;">NativeSignal</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> org.<span style="color: #006600;">osflash</span>.<span style="color: #006600;">signals</span>.<span style="color: #006600;">Signal</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;<br />
<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">/**<br />
&nbsp; &nbsp; &nbsp;* @author Clint Hannaford<br />
&nbsp; &nbsp; &nbsp;*/</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Player <span style="color: #0066CC;">extends</span> Sprite <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> playerKilled:Signal;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> playerHit:Signal;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> click : NativeSignal;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> health: <span style="color: #0066CC;">Number</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Player<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; health = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; playerKilled = <span style="color: #000000; font-weight: bold;">new</span> Signal<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; playerHit = <span style="color: #000000; font-weight: bold;">new</span> Signal<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click = <span style="color: #000000; font-weight: bold;">new</span> NativeSignal<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, MouseEvent.<span style="color: #006600;">CLICK</span>, MouseEvent<span style="color: #66cc66;">&#41;</span>; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">with</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">graphics</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0x000000<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drawRect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">50</span>, <span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">endFill</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0xFFFFFF<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drawRect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drawRect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">30</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drawRect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">30</span>, <span style="color: #cc66cc;">30</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> hit<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; health--;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; playerHit.<span style="color: #006600;">dispatch</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Player Hit&quot;</span>, health<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>health <span style="color: #66cc66;">&lt;</span>= <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kill<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> kill<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; playerKilled.<span style="color: #006600;">dispatch</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Player Killed&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.pleribus.com/index.php/2010/02/replacing-events-with-as3signals/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>New Years Resolutions</title>
		<link>http://www.pleribus.com/index.php/2010/02/new-years-resolution/</link>
		<comments>http://www.pleribus.com/index.php/2010/02/new-years-resolution/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 04:18:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.pleribus.com/new_folio/?p=98</guid>
		<description><![CDATA[I had set myself an array of New Year resolutions for the coming year, one of them was to update the tired old website, and bring it into the current day and age, having not posting anything for a over a year now.
Starting with a fresh new design certainly helps getting into the right frame [...]]]></description>
			<content:encoded><![CDATA[<p>I had set myself an array of New Year resolutions for the coming year, one of them was to update the tired old website, and bring it into the current day and age, having not posting anything for a over a year now.</p>
<p>Starting with a fresh new design certainly helps getting into the right frame of mind.</p>
<p>The plan is to update the website a little more regularly as a means to show off some of the latest work I am doing, and talk about some of the things I&#8217;m researching and learning in the process.</p>
<p>Having recently made the switch to Mac, I am finally diving into Objective-C for iPhone app development, and it&#8217;s proving to be quite fun, and a welcome change from actionscript.</p>
<p>For anyone who is also looking to dive into Objective-C and haven&#8217;t already made the leap, I highly recommend the Stanford University lectures freely available through iTunesU.</p>
<p>Course notes, assignments and handouts are all available from the <a title="Stanford iPhone Development Course" href="http://www.stanford.edu/class/cs193p/cgi-bin/drupal/" target="_blank">course website</a>.<a title="Stanford iPhone Development Course" href="http://www.stanford.edu/class/cs193p/cgi-bin/drupal/" target="_blank"></a></p>
<p>I won&#8217;t be ignoring Flash and actionscript either, as I plan to look at some of the more interesting frameworks out there for flash over the coming months , such as <a title="Push Button Engine" href="http://www.pushbuttonengine.com/" target="_blank">PushButton Engine</a> and <a title="Flixel" href="http://flixel.org/" target="_blank">Flixel</a> for games, and things like <a title="RobotLegs Framework" href="http://www.robotlegs.org/" target="_blank">RobotLegs</a> and <a title="AS3Signals" href="http://github.com/robertpenner/as3-signals" target="_blank">AS3Signals</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pleribus.com/index.php/2010/02/new-years-resolution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Coca Cola &#8211; Summer Blast</title>
		<link>http://www.pleribus.com/index.php/2009/12/coca-cola-summer-blast/</link>
		<comments>http://www.pleribus.com/index.php/2009/12/coca-cola-summer-blast/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 01:34:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash/Actionscript]]></category>
		<category><![CDATA[Folio]]></category>

		<guid isPermaLink="false">http://www.pleribus.com/new_folio/?p=7</guid>
		<description><![CDATA[Players launch themselves into the air by timing the power bar to get maximum height.  They are then able to steer themselves as they fly through the air with the aim of staying in the air as long as possible and scoring maximum points.  Players steer themselves through the air bouncing off hot air balloons or finding up currents to gain extra air time.  Collecting bottle caps and landing in a designated target area give you extra points.]]></description>
			<content:encoded><![CDATA[<p>[Site no longer online - see video below]</p>
<p>Players launch themselves into the air by timing the power bar to get maximum height.  They are then able to steer themselves as they fly through the air with the aim of staying in the air as long as possible and scoring maximum points.  Players steer themselves through the air bouncing off hot air balloons or finding up currents to gain extra air time.  Collecting bottle caps and landing in a designated target area give you extra points.</p>
<p><object width="457" height="257"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=10280732&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=10280732&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="457" height="257"></embed></object>
<p><a href="http://vimeo.com/10280732">Coke Summer Blast</a> from <a href="http://vimeo.com/user3408853">Pleribus</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pleribus.com/index.php/2009/12/coca-cola-summer-blast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wrigleys 5 Gum</title>
		<link>http://www.pleribus.com/index.php/2009/08/wrigleys-5-gum/</link>
		<comments>http://www.pleribus.com/index.php/2009/08/wrigleys-5-gum/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 07:00:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash/Actionscript]]></category>
		<category><![CDATA[Folio]]></category>

		<guid isPermaLink="false">http://www.pleribus.com/new_folio/?p=24</guid>
		<description><![CDATA[http://www.5gum.fr
Wrigley’s 5 Gum “Stimulates Your Senses”  was the core objective of the new www.5gum.fr website.
The innovative site targets both the visual and auditory senses.
Boffswana was engaged to create a site utilising Augmented Reality to enable users to listen and control various music tracks as a sound mixer. Once three base tracks have been selected, users [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.5gum.fr">http://www.5gum.fr</a></p>
<p>Wrigley’s 5 Gum “Stimulates Your Senses”  was the core objective of the new <a title="Wrigley's 5 Gum" href="http://www.5gum.fr" target="_blank">www.5gum.fr</a> website.</p>
<p>The innovative site targets both the visual and auditory senses.</p>
<p>Boffswana was engaged to create a site utilising Augmented Reality to enable users to listen and control various music tracks as a sound mixer. Once three base tracks have been selected, users can modify the audio being played through the simultaneous use of three controlling markers.</p>
<p><object width="457" height="344"><param name="movie" value="http://www.youtube.com/v/vWQmnOdCGAI&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vWQmnOdCGAI&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="457" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pleribus.com/index.php/2009/08/wrigleys-5-gum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

