<?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>Harry Northover - The Blog&#187; Coding in Bubbles (IDE Concept).</title>
	<atom:link href="http://www.harrynorthover.com/blog/category/experimental/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.harrynorthover.com/blog</link>
	<description>harrynorthover.com is a blog created by 15 year old Harry Northover</description>
	<lastBuildDate>Wed, 31 Mar 2010 22:00:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Coding in Bubbles (IDE Concept).</title>
		<link>http://www.harrynorthover.com/blog/2010/03/10/coding-in-bubbles-ide-concept/</link>
		<comments>http://www.harrynorthover.com/blog/2010/03/10/coding-in-bubbles-ide-concept/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 20:22:15 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=872</guid>
		<description><![CDATA[I came across this early this evening and thought it looked a brilliant and fascinating way of coding! The idea is that code is split into different bubbles, each one representing a function. You can then drop and drag different methods around, adding notes to them, marking them as bugs or flagging that particular function [...]]]></description>
			<content:encoded><![CDATA[<p>I came across this early this evening and thought it looked a brilliant and fascinating way of coding!</p>
<p>The idea is that code is split into different bubbles, each one representing a function. You can then drop and drag different methods around, adding notes to them, marking them as bugs or flagging that particular function as important. I think this is a great way of coding as coding by nature is a very logical task and so by displaying it in a very organized, logical way makes a lot of sense. Traditionally code is just displayed as a single file with methods listed one after the other which is fine for smaller files/projects with a moderate amount of functions and classes with little to no external dependencies, but when you are dealing with large projects, multiple files and lots of external library&#8217;s then this way of logically splitting it up into relevant bubbles really makes sense. So watch the video and see what you think!</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="505" 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://www.youtube.com/v/PsPX0nElJ0k&amp;hl=en_US&amp;fs=1&amp;hd=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="505" src="http://www.youtube.com/v/PsPX0nElJ0k&amp;hl=en_US&amp;fs=1&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Project page here: <a href="http://www.cs.brown.edu/people/acb/codebubbles_site.htm" target="_blank">http://www.cs.brown.edu/people/acb/codebubbles_site.htm </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2010/03/10/coding-in-bubbles-ide-concept/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HYPE Framework &#8211; Bring experimentation to the masses.</title>
		<link>http://www.harrynorthover.com/blog/2009/11/03/hype-framework-bring-experimentation-to-the-masses/</link>
		<comments>http://www.harrynorthover.com/blog/2009/11/03/hype-framework-bring-experimentation-to-the-masses/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 21:53:34 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Getting Started]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=830</guid>
		<description><![CDATA[Recently Joshua Davis and Brendan Hall released a new framework call HYPE. The aim of the framework is to allow everyone from newbie level to professionals experiment with ease using Flash. I&#8217;m hoping to find some time in between GCSEs to have a go at making some stuff with this, so keep any eye out. [...]]]></description>
			<content:encoded><![CDATA[<p><span style="background-color: #ffffff;">Recently <a href="http://www.joshuadavis.com/" target="_blank">Joshua Davis</a> and Brendan Hall released a new framework call <a href="http://hype.joshuadavis.com/" target="_blank">HYPE</a>. The aim of the framework is to allow everyone from newbie level to professionals experiment with ease using Flash. </span></p>
<p><a href="http://www.harrynorthover.com/blog/wp-content/uploads/2009/11/hype1.jpg" rel="lightbox[830]"><img class="alignleft size-full wp-image-833" title="hype" src="http://www.harrynorthover.com/blog/wp-content/uploads/2009/11/hype1.jpg" alt="hype" width="606" height="124" /></a></p>
<p><span style="background-color: #ffffff;">I&#8217;m hoping to find some time in between GCSEs to have a go at making some stuff with this, so keep any eye out. <strong>You can </strong><a href="http://hype.joshuadavis.com/download/hype_1.0.zip" target="_blank"><strong>download it here</strong></a><strong>, and find the </strong><a href="http://hype.joshuadavis.com/installation/readme-installation-setup/" target="_blank"><strong>setup instructions here</strong></a><strong>. </strong></span></p>
<p>Have fun!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2009/11/03/hype-framework-bring-experimentation-to-the-masses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Highlights from MAX &#8217;09.</title>
		<link>http://www.harrynorthover.com/blog/2009/10/21/highlights-from-max-09/</link>
		<comments>http://www.harrynorthover.com/blog/2009/10/21/highlights-from-max-09/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 19:38:07 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=812</guid>
		<description><![CDATA[Before you ask, no I wasn&#8217;t at MAX, but after making an attempt at going through some of the 250+ hours of footage I have found a few jems that I think are worth mentioning. It sounded quite an event and plenty of exciting announcements were made! Heres a few key sessions. By now I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://max.adobe.com/"><img class="alignleft size-full wp-image-823" title="MAX" src="http://www.harrynorthover.com/blog/wp-content/uploads/2009/10/MAX.jpg" alt="MAX" width="612" height="100" /></a></p>
<p>Before you ask, no I wasn&#8217;t at MAX, but after making an attempt at going through some of the 250+ hours of footage I have found a few jems that I think are worth mentioning. It sounded quite an event and plenty of exciting announcements were made! Heres a few key sessions.</p>
<p>By now I am assuming you have all heard about native compiling to the iPhone in Flash CS5 and if you haven&#8217;t then be very ashamed :p . Well here&#8217;s a session that sheds some light on it if you haven&#8217;t got a clear understand:</p>
<p><strong>Building Applications for iPhone using Adobe Flash CS5 professional</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="256" 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="FlashVars" value="fileID=2421&amp;context=162&amp;embeded=true&amp;environment=production" /><param name="src" value="http://images.tv.adobe.com//swf/player.swf" /><param name="flashvars" value="fileID=2421&amp;context=162&amp;embeded=true&amp;environment=production" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="256" src="http://images.tv.adobe.com//swf/player.swf" flashvars="fileID=2421&amp;context=162&amp;embeded=true&amp;environment=production" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<hr />
<p>Now the next one is on the Flash Player its self, and what makes it tick. With each update the Flash Player gets more and more advanced, and with it complicated. Questions you never even had are answered in this session and it is a must see from my point of view.</p>
<p><strong>Flash Player Internals </strong></p>
<p><strong><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="256" 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="FlashVars" value="fileID=2517&amp;context=162&amp;embeded=true&amp;environment=production" /><param name="src" value="http://images.tv.adobe.com//swf/player.swf" /><param name="flashvars" value="fileID=2517&amp;context=162&amp;embeded=true&amp;environment=production" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="256" src="http://images.tv.adobe.com//swf/player.swf" flashvars="fileID=2517&amp;context=162&amp;embeded=true&amp;environment=production" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
</strong></p>
<p>A lot of these things in this video I have never really thought about, but when they are explained you see what a difference they make and how important it is to know some of the stuff explained. One of the interesting concepts was at the start about rendering, describing the difference between Immediate and Retained rendering. Now I know this is simple stuff for the &#8216;pros&#8217; amongst us, but for me I had never really understood this so it was nice to have it explained in simple terms.</p>
<hr />
<p>For me one of the biggest announcements was that there is a new FLA format, which is going to be based on XML! This is a lot better than the current version which was essentially a &#8216;black box&#8217; as XML is an extremely open and widely used language. The new format is essentially going to be a modified ZIP file contain separate files for the library assets, publication settings and document information which will make it easier to use in source control systems and other similar management tools.</p>
<p><strong>XML based FLA: The New Flash File Format</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="256" 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="FlashVars" value="fileID=2376&amp;context=162&amp;embeded=true&amp;environment=production" /><param name="src" value="http://images.tv.adobe.com//swf/player.swf" /><param name="flashvars" value="fileID=2376&amp;context=162&amp;embeded=true&amp;environment=production" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="256" src="http://images.tv.adobe.com//swf/player.swf" flashvars="fileID=2376&amp;context=162&amp;embeded=true&amp;environment=production" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<hr />So there are a few highlights, but there is <strong>*so*</strong> much more to watch and learn about. If you want to see the full list of videos then head on over to <a href="http://tv.adobe.com/" target="_blank">Adobe TV</a>.</p>
<p>Also, sorry it has been quite recently! I have been rather busy with school seeing as I am coming up to my GCSEs quite soon. <strong>I am also starting to think about work experience for the 2010 summer (July-August), and if anyone has any suggestions or offers then that would be brilliant! </strong></p>
<p>Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2009/10/21/highlights-from-max-09/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting Started with Augmented Reality (FLARToolkit).</title>
		<link>http://www.harrynorthover.com/blog/2009/04/15/getting-started-with-augmented-reality-flartoolkit/</link>
		<comments>http://www.harrynorthover.com/blog/2009/04/15/getting-started-with-augmented-reality-flartoolkit/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 22:50:34 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Augmented Reality]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[FLARToolkit]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=680</guid>
		<description><![CDATA[If you have been following me on Twitter, then you may have noticed that I have been getting into Augmented Reality. This is the coolest thing I have seen in a long time! Now if you don&#8217;t know what this is, then it is a means of mapping 3D objects to a marker in the [...]]]></description>
			<content:encoded><![CDATA[<p>If you have been following <a href="http://www.twitter.com/harrynorthover" target="_blank">me on Twitter</a>, then you may have <a href="http://twitter.com/harrynorthover/status/1493666316" target="_blank">noticed</a> that I have been <a href="http://twitter.com/harrynorthover/status/1505193808" target="_blank">getting</a> into <a href="http://en.wikipedia.org/wiki/Augmented_reality" target="_blank">Augmented Reality</a>. This is the <strong>coolest</strong> thing I have seen in a long time! Now if you don&#8217;t know what this is, then it is a means of mapping 3D objects to a marker in the real world through a web cam.</p>
<p>Here is a simple guide to getting setup using the Augmented Reality in Flash. This includes downloading the library&#8217;s and then getting a simple demo up and running.</p>
<p>The name of the library used for Augmented Reality in Flash is called <a href="http://www.libspark.org/wiki/saqoosha/FLARToolKit/en" target="_blank">FLARToolkit</a> which is developed by Saqoosha. It is a port of the <a href="http://www.hitl.washington.edu/artoolkit/" target="_blank">ARToolkit</a> which is written in C. You can download it from <a href="http://www.libspark.org/wiki/saqoosha/FLARToolKit/en" target="_blank">here</a> through SVN. If you haven&#8217;t got a SVN client setup then I highly recommend <a href="http://www.syntevo.com/smartsvn/index.html" target="_blank">SmartSVN</a> which is a free client and I must thank <a href="http://richardleggett.co.uk/blog/" target="_blank">Richard Leggett</a> for <a href="http://twitter.com/richardleggett/statuses/1489494390" target="_blank">recommending</a> this to me!</p>
<p>Now once you have got the code, add it to your global Actionscript folder, then print out this <a href="http://www.harrynorthover.com/files/flash/ar/assets/Marker.jpg" target="_self" rel="lightbox[680]">marker</a> and run the example. You can either compile the source in the &#8216;src&#8217; folder or just run the SWF in the &#8216;bin-debug&#8217; folder. Hopefully this gives you a idea of what AR/FLARToolkit is all about.</p>
<p>If you can run the example yourself, here is a video of it in action.</p>
<p><object width="612" height="486" data="http://vimeo.com/moogaloop.swf?clip_id=4169730&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"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=4169730&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" /></object><br />
<a href="http://vimeo.com/4169730">FLARToolkit / Augmented Reality Basic Demo.</a> from <a href="http://vimeo.com/user1592225">Harry Northover</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>I have also written a base class for a FLARToolkit application. It is designed so that all you have to do is override the function &#8216;<em>add3d()</em>&#8216; to add your 3D objects to &#8216;<em>FLAR_Container</em>&#8221; object, and then override another function, &#8216;<em>addAnimation_3d()</em>&#8216; to add the animation. My description here is very brief so read the <em>readme</em> file in the package. You can download the class <a href="http://harry-northover-code-store.googlecode.com/files/FLARBaseClass.zip" target="_self">here</a>. If you want to see how much code this can reduce then here is an example class using the base class:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> com.harrynorthover.ar.flar.base.FLARSingleMBase;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.filters</span>.<span style="color: #004993;">BlurFilter</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> org.papervision3d.lights.PointLight3D;
	<span style="color: #0033ff; font-weight: bold;">import</span> org.papervision3d.materials.shadematerials.FlatShadeMaterial;
	<span style="color: #0033ff; font-weight: bold;">import</span> org.papervision3d.materials.utils.MaterialsList;
	<span style="color: #0033ff; font-weight: bold;">import</span> org.papervision3d.objects.primitives.Cube;
&nbsp;
	<span style="color: #000000;">&#91;</span>SWF<span style="color: #000000;">&#40;</span><span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;640&quot;</span>, <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;480&quot;</span>, <span style="color: #004993;">frameRate</span>=<span style="color: #990000;">&quot;30&quot;</span>, <span style="color: #004993;">backgroundColor</span>=<span style="color: #990000;">&quot;#FFFFFF&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Demo_BaseClass_Test extends FLARSingleMBase
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> cube<span style="color: #000000; font-weight: bold;">:</span>Cube;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Demo_BaseClass_Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #3f5fbf;">/*This is the function 'Init' you need to call to setup the FLARToolkit scene.
			     WIDTH, HEIGHT, FRAMERATE*/</span>
			Init<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">640</span>,   <span style="color: #000000; font-weight:bold;">480</span>,    <span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #3f5fbf;">/*
		...
		This function is the one you need to override
		to add things to your 3D scene.
		*/</span>
&nbsp;
		override <span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #339966; font-weight: bold;">function</span> add3D<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #009900;">// Add you 3D stuff here. The more the better :-)</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> pl<span style="color: #000000; font-weight: bold;">:</span>PointLight3D = <span style="color: #0033ff; font-weight: bold;">new</span> PointLight3D<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			pl.z = <span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">1000</span>;
			pl.<span style="color: #004993;">y</span> = <span style="color: #000000; font-weight:bold;">1000</span>;
			pl.<span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">1000</span>;
			pl.flipped = <span style="color: #0033ff; font-weight: bold;">true</span>;	
&nbsp;
			<span style="color: #009900;">//var blurFilter:BlurFilter = new BlurFilter(24, 12, 1);</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> matList<span style="color: #000000; font-weight: bold;">:</span>MaterialsList = <span style="color: #0033ff; font-weight: bold;">new</span> MaterialsList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> fsm<span style="color: #000000; font-weight: bold;">:</span>FlatShadeMaterial = <span style="color: #0033ff; font-weight: bold;">new</span> FlatShadeMaterial<span style="color: #000000;">&#40;</span>pl<span style="color: #000000;">&#41;</span>;
&nbsp;
			matList.addMaterial<span style="color: #000000;">&#40;</span>fsm, <span style="color: #990000;">&quot;all&quot;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
  			cube = <span style="color: #0033ff; font-weight: bold;">new</span> Cube<span style="color: #000000;">&#40;</span>matList, <span style="color: #000000; font-weight:bold;">60</span>, <span style="color: #000000; font-weight:bold;">60</span>, <span style="color: #000000; font-weight:bold;">60</span>, <span style="color: #000000; font-weight:bold;">5</span>, <span style="color: #000000; font-weight:bold;">5</span>, <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000000;">&#41;</span>;
  			<span style="color: #009900;">//cube.useOwnContainer = true;</span>
  			<span style="color: #009900;">//cube.filters = [blurFilter];</span>
&nbsp;
  			<span style="color: #009900;">// FLAR_Container is the FLARBaseNode that you</span>
  			<span style="color: #009900;">// add your 3D objects to.</span>
	        FLAR_Container.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>cube<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #3f5fbf;">/*
		...
		This is the function to which you override to add
		your 3D animation.
		*/</span>
&nbsp;
		override <span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #339966; font-weight: bold;">function</span> addAnimation_3d<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #009900;">//Add you animation here.</span>
			cube.yaw<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>See? Lots of code that has been got rid of!</p>
<h3>Other demos I have been working on are here:</h3>
<p><strong>FLAR + Lines3D</strong>:</p>
<p><object width="612" height="459" data="http://vimeo.com/moogaloop.swf?clip_id=4172342&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"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=4172342&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" /></object><br />
<a href="http://vimeo.com/4172342">FLARToolkit and Lines3D / Augmented Reality</a> from <a href="http://vimeo.com/user1592225">Harry Northover</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p><strong>Incorporating <a href="http://code.google.com/p/as3dmod/" target="_blank">AS3DMod</a>:</strong></p>
<p><object width="612" height="459" data="http://vimeo.com/moogaloop.swf?clip_id=4172923&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"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=4172923&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" /></object><br />
<a href="http://vimeo.com/4172923">FLAR + As3DMod</a> from <a href="http://vimeo.com/harrynorthover">Harry Northover</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>So there you go, my first few demos. Yes, I know, they are not very special but now I&#8217;m working on getting mutliple markers working and just more advanced demos in general. If you are looking for more advice on how to get set up with FLAR go over to <a href="http://www.mikkoh.com/blog/?p=182" target="_blank">this blog here</a>. This has everything you need to get going. Also, check out <a href="http://www.squidder.com/tag/flartoolkit/" target="_blank">squidder.com for some cool demos</a>.</p>
<p>Happy ARing!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2009/04/15/getting-started-with-augmented-reality-flartoolkit/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Curiosity. The Driving force of The Earth.</title>
		<link>http://www.harrynorthover.com/blog/2009/02/08/curiosity-the-driving-force-of-the-earth/</link>
		<comments>http://www.harrynorthover.com/blog/2009/02/08/curiosity-the-driving-force-of-the-earth/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 21:35:58 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=572</guid>
		<description><![CDATA[Here is a piece of artwork I did, continuing my series of emotions. The latest one is Curiosity. This piece uses a render from Cinema 4D and the adds a little Photoshop magic. Harry.]]></description>
			<content:encoded><![CDATA[<p>Here is a piece of artwork I did, continuing my series of emotions. The latest one is Curiosity.</p>
<p><a href="http://www.harrynorthover.com/blog/wp-content/uploads/2009/02/curiosity.jpg" rel="lightbox[572]"><img src="http://www.harrynorthover.com/blog/wp-content/uploads/2009/02/curiosity-1024x479.jpg" alt="Curiosity." width="612" height="286" /></a></p>
<p>This piece uses a render from Cinema 4D and the adds a little Photoshop magic.</p>
<p><strong>Harry.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2009/02/08/curiosity-the-driving-force-of-the-earth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First works of &#8217;09.</title>
		<link>http://www.harrynorthover.com/blog/2009/02/05/first-works-of-09/</link>
		<comments>http://www.harrynorthover.com/blog/2009/02/05/first-works-of-09/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 21:36:45 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[After Effects]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Motion Graphics/VFX]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=562</guid>
		<description><![CDATA[You have proabably noticed that i havent blogged myself for quite a while. The main reason for this is that I have been picking up Cinema4D and After Effects Cs4. I am finally starting to get the hang of the these pieces of software and its brilliant! This post is mainly to show you some [...]]]></description>
			<content:encoded><![CDATA[<p>You have proabably noticed that i havent blogged myself for quite a while. The main reason for this is that I have been picking up Cinema4D and After Effects Cs4. I am finally starting to get the hang of the these pieces of software and its brilliant! This post is mainly to show you some of the work I have done in C4D. I have done 2 different wallpapers.</p>
<p><strong>Desire</strong> / Cinema 4D + Photoshop CS4</p>
<p><a href="http://www.harrynorthover.com/blog/wp-content/uploads/2009/02/desire.jpg" rel="lightbox[562]"><img class="alignnone size-large wp-image-563" title="Desire" src="http://www.harrynorthover.com/blog/wp-content/uploads/2009/02/desire-1024x640.jpg" alt="Desire" width="612" height="382" /></a></p>
<p><strong>Passion</strong> / Cinema 4D + Photoshop CS4</p>
<p><a href="http://www.harrynorthover.com/files/images/Passion.jpg" rel="lightbox[562]"><img class="alignnone" title="Passion" src="http://www.harrynorthover.com/files/images/Passion.jpg" alt="" width="612" height="612" /></a></p>
<p>For After Effects I have been creating little scenes with things like moving water which arent really worth posting here, but here is a screenshot of one of them.</p>
<p><strong>3D Ocean</strong> / After Effects.</p>
<p><img class="alignnone size-full wp-image-567" title="3d-ocean-screenshot" src="http://www.harrynorthover.com/blog/wp-content/uploads/2009/02/3d-ocean-screenshot.jpg" alt="3d-ocean-screenshot" width="611" height="407" /></p>
<p>So there you go, some of the stuff I have been doing to help me learn these tools. I feel that now my art work has really stepped up a pace now, and hopefully you will agree too :D</p>
<p>Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2009/02/05/first-works-of-09/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PaperMash</title>
		<link>http://www.harrynorthover.com/blog/2009/01/10/535/</link>
		<comments>http://www.harrynorthover.com/blog/2009/01/10/535/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 19:43:46 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=535</guid>
		<description><![CDATA[Here&#8217;s the first little tech demo of &#8217;09 and I think it is a pretty cool one. The first difference is that it is made with Papervision3D instead of my usual engine choice of Away3D. It also uses a relativly new library, AS3DMod, and works with the 4 most popular engines.  Now this library is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.harrynorthover.com/files/flash/papermash/"><img class="alignnone size-full wp-image-559" title="PaperMash" src="http://www.harrynorthover.com/blog/wp-content/uploads/2009/01/preview3.jpg" alt="PaperMash" width="612" height="200" /><br />
</a></p>
<p>Here&#8217;s the first little tech demo of &#8217;09 and I think it is a pretty cool one. The first difference is that it is made with Papervision3D instead of my usual engine choice of Away3D. It also uses a relativly new library, <a href="http://www.everydayflash.com/blog/index.php/2008/09/03/as3dmod/" target="_blank">AS3DMod</a>, and works with the 4 most popular engines.  Now this library is a modifier library which can do some really cool stuff, so go on over and check it out.</p>
<p>Now for the demo. It creates a standard plane, then applys a noise and perlin modifier to it. The last thing is to apply a FlatShadeMaterial to the plane and just animate these properties in the enter frame function.</p>
<p>You can download it <a href="http://harry-northover-code-store.googlecode.com/files/PaperMash.zip">here</a>. To view the demo, click on the picture.</p>
<p>Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2009/01/10/535/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nano &#8211; The Remix.</title>
		<link>http://www.harrynorthover.com/blog/2008/12/21/nano-the-remix/</link>
		<comments>http://www.harrynorthover.com/blog/2008/12/21/nano-the-remix/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 02:24:02 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[After Effects]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Motion Graphics/VFX]]></category>
		<category><![CDATA[Motion Graphics]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=450</guid>
		<description><![CDATA[In my effort to learn After Effects CS4 and create high quality visual effects/motion graphics stuff, I created this little recreation of the famous iPod Nano advert to help me learn how to use After Effects and the Trapcode Particular. Now this makes heavy use of Particular and uses the wiggle() function to create the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.harrynorthover.com/files/movie/Nano.mov" target="_blank"><img class="alignnone size-full wp-image-451" title="Nano" src="http://www.harrynorthover.com/blog/wp-content/uploads/2008/12/nano.png" alt="Nano" width="612" height="100" /></a></p>
<p>In my effort to learn <a href="http://www.adobe.com/products/aftereffects/" target="_blank">After Effects CS4</a> and create high quality visual effects/motion graphics stuff, I created this little recreation of the famous iPod Nano advert to help me learn how to use After Effects and the <a href="http://www.trapcode.com/products_particular.html" target="_blank">Trapcode Particular</a>.</p>
<p>Now this makes heavy use of Particular and uses the <em>wiggle()</em> function to create the random motion for a minute.</p>
<p>It&#8217;s fairly basic but it helped me learn the basics of camera movement and how to get to grips with animation in After Effects. There will hopefully be a lot more AE/VFX coming soon. I have a little Flash demo on the way, but after that it&#8217;s a free road!</p>
<p>Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2008/12/21/nano-the-remix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://www.harrynorthover.com/movie/Nano.mov" length="305562566" type="video/quicktime" />
		</item>
		<item>
		<title>BitmapRenderSession Demo.</title>
		<link>http://www.harrynorthover.com/blog/2008/12/08/bitmaprendersession-demo/</link>
		<comments>http://www.harrynorthover.com/blog/2008/12/08/bitmaprendersession-demo/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 21:39:24 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Away3D]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=388</guid>
		<description><![CDATA[(Updated: Download Link Added) Phew, a tech demo hasn&#8217;t found it&#8217;s way on here for quite a while! Here is one to let you know I&#8217;m back, but busy.  I finally managed to get an idea down on to paper, (well.. into the Flash IDE) that had been buzzing around in my head for ages!  [...]]]></description>
			<content:encoded><![CDATA[<p><strong>(Updated: Download Link Added)</strong></p>
<p>Phew, a tech demo hasn&#8217;t found it&#8217;s way on here for quite a while! Here is one to let you know I&#8217;m back, but busy. </p>
<p>I finally managed to get an idea down on to paper, (well.. into the Flash IDE) that had been buzzing around in my head for ages! </p>
<p><span>There is a feature in Away3D call the <em>BitmapRenderSession</em>, and you assign this to the <em>session </em>variable of your <em>View3D</em>. What this tells the rendered to do is, instead of drawing directly to the screen, it draws everything inside a <em>BitmapData</em> object, but at a much smaller resolution. This Bitmap is then scaled up and show and the selected size. As you can imagine this saves a lot of work done, as you only have to draw at, say, a quarter of the resolution that you normally would. There is a catch. You will have figured this out already, but the lost of quality is tremendous the more you scale it up, but I have found out how to make this work for me. Just look at the demo. </span></p>
<p><span>What I have done here is create a plane, added then some animation to it. Then I am assigning a new <em>BitmapRenderSession</em> object to the View3D, and then changing the value of it when the mouse moves. If you look closely at the code, you will see that I am creating a new <em>BitmapRenderSession</em> for every frame. Not efficient at all, but I haven&#8217;t had the time to look into this properly, so if anyone knows a solution, let me know! </span></p>
<p><span>This at one end of the scale (with your mouse at the top), looks high quality, but when you move your mouse to the bottom, you can see the effect immediately. It becomes highly pixilated and, I think, fairly cool! I have seen this sort of effect on many sites, and always wondered how I could achieve it. Here is my solution, but one of many out there I&#8217;m sure. </span></p>
<p><span><a href="http://www.harrynorthover.com/blog/wp-content/uploads/1969/12/v21.swf"><img class="alignnone size-full wp-image-390" title="picture-2" src="http://www.harrynorthover.com/blog/wp-content/uploads/1969/12/picture-2.png" alt="picture-2" width="612" height="473" /></a></span></p>
<p><span><em>Your going to have to resize your browser, as pop-ups seem to be fairly hard in WordPress :( </em></span></p>
<p>You can download the whole thing over at my Google Code site (look on the right). <span style="text-decoration: line-through;">It should be up there in a few days</span>. Here&#8217;s the link: <a href="http://harry-northover-code-store.googlecode.com/files/BMRS.zip">BMRS.zip</a></p>
<p>Harry.</p>
<p><span><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2008/12/08/bitmaprendersession-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Away3D Base Class</title>
		<link>http://www.harrynorthover.com/blog/2008/10/12/away3d-base-class/</link>
		<comments>http://www.harrynorthover.com/blog/2008/10/12/away3d-base-class/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 12:19:13 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Away3D]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=226</guid>
		<description><![CDATA[In my effort to cut down the amount of code I write when using Away3D, I created this. It is a base class for projects using Away3D. What this does is create a series of protected functions that you can override and add in what you need, while the base class created the viewport, scene [...]]]></description>
			<content:encoded><![CDATA[<p>In my effort to cut down the amount of code I write when using Away3D, I created this. It is a base class for projects using Away3D. What this does is create a series of protected functions that you can override and add in what you need, while the base class created the viewport, scene and everything else! This minimizes the amount of code you write in the actual project to a minimal amount!</p>
<p>Here is an example:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.primitives.Sphere;
	<span style="color: #0033ff; font-weight: bold;">import</span> com.harrynorthover.base.AwayBase;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> BaseClass extends AwayBase <span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> sphere<span style="color: #000000; font-weight: bold;">:</span>Sphere = <span style="color: #0033ff; font-weight: bold;">new</span> Sphere<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> radius<span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">100</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> BaseClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #009900;">// Init(camZoom, viewX, viewY);</span>
			Init<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">12</span>, <span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		override <span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #339966; font-weight: bold;">function</span> Init3D<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			sphere.<span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">0</span>;
			sphere.<span style="color: #004993;">y</span> = <span style="color: #000000; font-weight:bold;">0</span>;
			view.scene.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>sphere<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>See how much is has been reduced by? No faffing around with View3D and addChild(view) etc. </p>
<p>You can download the whole thing here: <a href="http://harry-northover-code-store.googlecode.com/files/Away3dBase.zip">http://harry-northover-code-store.googlecode.com/files/Away3dBase.zip</a></p>
<p>Hope it helps!<br />
Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2008/10/12/away3d-base-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Technophobia</title>
		<link>http://www.harrynorthover.com/blog/2008/10/05/technophobia/</link>
		<comments>http://www.harrynorthover.com/blog/2008/10/05/technophobia/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 12:18:08 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[CS3]]></category>
		<category><![CDATA[Motion Graphics]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=220</guid>
		<description><![CDATA[This is just another this animation I put together last night. It uses TweenLite, and BitmapData combined with a number of filters, to create this rather groovy effect. I think this is one of my better peices, so I hope you enjoy it. NOTE: It is better viewed when you download it as I am [...]]]></description>
			<content:encoded><![CDATA[<p>This is just another this animation I put together last night. It uses TweenLite, and BitmapData combined with a number of filters, to create this rather groovy effect. I think this is one of my better peices, so I hope you enjoy it.</p>
<p><em><strong>NOTE: It is better viewed when you download it as I am having troubles with pop-ups in WordPress? When viewed on line it is incrediably slow, and not very good in general.</strong></em></p>
<p><a href="http://www.harrynorthover.com/files/flash/Technophobia.swf" target="_blank"><img class="alignnone size-full wp-image-222" title="Technophobia" src="http://www.harrynorthover.com/blog/wp-content/uploads/2008/10/technophobia.jpg" alt="" width="465" height="473" /></a></p>
<p>And here is the code:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> gs.TweenLite;
<span style="color: #0033ff; font-weight: bold;">import</span> gs.easing.Expo;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> amountOfCircles<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">30</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> stageW<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageWidth</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> stageH<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageHeight</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> ranX<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> stageW <span style="color: #000000; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">300</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> ranY<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> stageH <span style="color: #000000; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">300</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> ranAlpha<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> .5;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> blur<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BlurFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BlurFilter</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span>, <span style="color: #000000; font-weight:bold;">10</span>, <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> blurBM<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BlurFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BlurFilter</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">20</span>, <span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> glowBM<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">GlowFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">GlowFilter</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">round</span><span style="color: #000000;">&#40;</span> <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">*</span>0xFFFFFF <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> bmd<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">550</span>, <span style="color: #000000; font-weight:bold;">500</span>, <span style="color: #0033ff; font-weight: bold;">true</span>, 0x000000<span style="color: #000000;">&#41;</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> bm<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span>bmd<span style="color: #000000;">&#41;</span>;
bm.<span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">0</span>;
bm.<span style="color: #004993;">y</span> = <span style="color: #000000; font-weight:bold;">0</span>;
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>bm<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #000000; font-weight:bold;">0</span>; i <span style="color: #000000; font-weight: bold;">&amp;</span>lt;= amountOfCircles; i<span style="color: #000000; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> circle<span style="color: #000000; font-weight: bold;">:</span>Circle = <span style="color: #0033ff; font-weight: bold;">new</span> Circle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	circle.<span style="color: #004993;">x</span> = ranX <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">100</span>;
	circle.<span style="color: #004993;">y</span> = ranY <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">100</span>;
	circle.<span style="color: #004993;">alpha</span> = ranAlpha;
	circle.<span style="color: #004993;">filters</span> = <span style="color: #000000;">&#91;</span>blur, glowBM<span style="color: #000000;">&#93;</span>;
	<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>circle<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;
mover<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, <span style="color: #004993;">enterFrame</span><span style="color: #000000;">&#41;</span>;
<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">RESIZE</span>, onResize<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> mover<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #000000; font-weight:bold;">0</span>; i <span style="color: #000000; font-weight: bold;">&amp;</span>lt;= amountOfCircles; i<span style="color: #000000; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> object<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">DisplayObject</span> = <span style="color: #004993;">getChildAt</span><span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span>;
			<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>object == bm<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
				i<span style="color: #000000; font-weight: bold;">++</span>;
			<span style="color: #000000;">&#125;</span>
			<span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #000000;">&#123;</span>
				object.<span style="color: #004993;">alpha</span> = ranAlpha;
			TweenLite.to<span style="color: #000000;">&#40;</span>object, <span style="color: #000000; font-weight:bold;">1</span>, <span style="color: #000000;">&#123;</span><span style="color: #004993;">x</span><span style="color: #000000; font-weight: bold;">:</span> ranX <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">1000</span>, <span style="color: #004993;">y</span><span style="color: #000000; font-weight: bold;">:</span> ranX <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">1000</span>, <span style="color: #004993;">alpha</span><span style="color: #000000; font-weight: bold;">:</span> <span style="color: #000000; font-weight:bold;">0</span>, ease<span style="color: #000000; font-weight: bold;">:</span>Expo.easeInOut, onComplete<span style="color: #000000; font-weight: bold;">:</span>mover, blurFilter<span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000;">&#123;</span><span style="color: #004993;">blurX</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">100</span>, <span style="color: #004993;">blurY</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#125;</span>, tint<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">round</span><span style="color: #000000;">&#40;</span> <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">*</span>0xFFFFFF <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>;
			glowBM.<span style="color: #004993;">color</span> = <span style="color: #004993;">Math</span>.<span style="color: #004993;">round</span><span style="color: #000000;">&#40;</span> <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">*</span>0xFFFFFF <span style="color: #000000;">&#41;</span>;
			glowBM.<span style="color: #004993;">alpha</span> = ranAlpha <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">2</span>;
			<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">enterFrame</span><span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
	bmd.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">stage</span><span style="color: #000000;">&#41;</span>;
	bmd.<span style="color: #004993;">applyFilter</span><span style="color: #000000;">&#40;</span>bmd, bmd.<span style="color: #004993;">rect</span>, <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Point</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span>,<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>, blurBM<span style="color: #000000;">&#41;</span>;
	bmd.<span style="color: #004993;">applyFilter</span><span style="color: #000000;">&#40;</span>bmd, bmd.<span style="color: #004993;">rect</span>, <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Point</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span>,<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>, glowBM<span style="color: #000000;">&#41;</span>;
	bmd.<span style="color: #004993;">scroll</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span>, <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> onResize<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
	bm.<span style="color: #004993;">x</span> = bm.<span style="color: #004993;">y</span> = <span style="color: #000000; font-weight:bold;">0</span>;
	bm.<span style="color: #004993;">width</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageWidth</span>;
	bm.<span style="color: #004993;">height</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageHeight</span>;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>You can download the whole thing here: <a href="http://harry-northover-code-store.googlecode.com/files/Technophobia.zip">http://harry-northover-code-store.googlecode.com/files/Technophobia.zip</a></p>
<p>Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2008/10/05/technophobia/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Away3D Skyboxes</title>
		<link>http://www.harrynorthover.com/blog/2008/09/28/away3d-skyboxes/</link>
		<comments>http://www.harrynorthover.com/blog/2008/09/28/away3d-skyboxes/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 16:46:33 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Away3D]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=204</guid>
		<description><![CDATA[This is my best demo yet, and it is crucial to my new site. This demo is using the sky box features in Away3D. For those of you that don&#8217;t know what a sky box is, it is a collection of images (usually 6, but in this case 5, I didn&#8217;t have a bottom one), [...]]]></description>
			<content:encoded><![CDATA[<p>This is my best demo yet, and it is crucial to my new site. This demo is using the sky box features in Away3D. For those of you that don&#8217;t know what a sky box is, it is a collection of images (usually 6, but in this case 5, I didn&#8217;t have a bottom one), that are displayed on the inside of a cube, and then the camera is inside the cube looking out at these images. This gives the impression of a sky, and ground and surroundings that are usually behind everything else. Using sky boxes prevents the sky being plain black.</p>
<p>Here is the demo (just click). To explore, click and drag to find your way around.</p>
<p><script type="text/javascript">&lt;br /&gt;
&lt;!--&lt;br /&gt;
function popup(mylink, windowname)&lt;br /&gt;
{&lt;br /&gt;
if (! window.focus)return true;&lt;br /&gt;
var href;&lt;br /&gt;
if (typeof(mylink) == 'string')&lt;br /&gt;
   href=mylink;&lt;br /&gt;
else&lt;br /&gt;
   href=mylink.href;&lt;br /&gt;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');&lt;br /&gt;
return false;&lt;br /&gt;
}&lt;br /&gt;
//--&gt;&lt;br /&gt;
</script></p>
<p><a onclick="return popup(this, 'notes')" href="http://www.harrynorthover.com/files/flash/Skybox.swf"><img class="alignnone size-full wp-image-205" title="Skybox" src="http://www.harrynorthover.com/blog/wp-content/uploads/2008/09/skybox.jpg" alt="" width="456" height="460" /></a></p>
<p>And here is the code:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.cameras.HoverCamera3D;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.containers.Scene3D;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.containers.View3D;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.materials.BitmapMaterial;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.primitives.Skybox;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.core.utils.Cast;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">StageAlign</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">StageScaleMode</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">MouseEvent</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> SkyStuff extends <span style="color: #004993;">Sprite</span> <span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> cam<span style="color: #000000; font-weight: bold;">:</span>HoverCamera3D = <span style="color: #0033ff; font-weight: bold;">new</span> HoverCamera3D<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #004993;">zoom</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">2</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> scene<span style="color: #000000; font-weight: bold;">:</span>Scene3D = <span style="color: #0033ff; font-weight: bold;">new</span> Scene3D;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> view<span style="color: #000000; font-weight: bold;">:</span>View3D = <span style="color: #0033ff; font-weight: bold;">new</span> View3D<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> camera<span style="color: #000000; font-weight: bold;">:</span>cam, scene<span style="color: #000000; font-weight: bold;">:</span>scene, <span style="color: #004993;">x</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #004993;">y</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;
&nbsp;
		<span style="color: #009900;">// Skybox stuff.</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> sky<span style="color: #000000; font-weight: bold;">:</span>Skybox;
		<span style="color: #009900;">// Materials....</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> sky_front_material<span style="color: #000000; font-weight: bold;">:</span>BitmapMaterial;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> sky_back_material<span style="color: #000000; font-weight: bold;">:</span>BitmapMaterial;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> sky_left_material<span style="color: #000000; font-weight: bold;">:</span>BitmapMaterial;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> sky_right_material<span style="color: #000000; font-weight: bold;">:</span>BitmapMaterial;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> sky_up_material<span style="color: #000000; font-weight: bold;">:</span>BitmapMaterial;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> sky_down_material<span style="color: #000000; font-weight: bold;">:</span>BitmapMaterial;
&nbsp;
		<span style="color: #009900;">// Movement vars.</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> move<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> = <span style="color: #0033ff; font-weight: bold;">false</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> lastPanAngle<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> lastTiltAngle<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> lastMouseX<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> lastMouseY<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> SkyStuff<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ADDED_TO_STAGE</span>, Init<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> Init<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			InitStage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			InitEngine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			InitMaterials<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			InitObjects<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			InitListeners<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> InitStage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">stage</span>.<span style="color: #004993;">align</span> = <span style="color: #004993;">StageAlign</span>.<span style="color: #004993;">TOP_LEFT</span>
			<span style="color: #004993;">stage</span>.<span style="color: #004993;">scaleMode</span> = <span style="color: #004993;">StageScaleMode</span>.<span style="color: #004993;">NO_SCALE</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> InitEngine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			cam.mintiltangle = <span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">80</span>;
			cam.maxtiltangle = <span style="color: #000000; font-weight:bold;">20</span>;
			cam.targetpanangle = cam.panangle = <span style="color: #000000; font-weight:bold;">0</span>;
			cam.targettiltangle = cam.tiltangle = <span style="color: #000000; font-weight:bold;">0</span>;
&nbsp;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>view<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> InitObjects<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			sky = <span style="color: #0033ff; font-weight: bold;">new</span> Skybox<span style="color: #000000;">&#40;</span> sky_front_material, sky_left_material, sky_back_material, sky_right_material, sky_up_material, sky_down_material <span style="color: #000000;">&#41;</span>;
			sky.quarterFaces<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			view.scene.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>sky<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> InitMaterials<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			sky_front_material = <span style="color: #0033ff; font-weight: bold;">new</span> BitmapMaterial<span style="color: #000000;">&#40;</span>Cast.bitmap<span style="color: #000000;">&#40;</span>SkyFront<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
			sky_back_material = <span style="color: #0033ff; font-weight: bold;">new</span> BitmapMaterial<span style="color: #000000;">&#40;</span>Cast.bitmap<span style="color: #000000;">&#40;</span>SkyBack<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
			sky_left_material = <span style="color: #0033ff; font-weight: bold;">new</span> BitmapMaterial<span style="color: #000000;">&#40;</span>Cast.bitmap<span style="color: #000000;">&#40;</span>SkyLeft<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
			sky_up_material = <span style="color: #0033ff; font-weight: bold;">new</span> BitmapMaterial<span style="color: #000000;">&#40;</span>Cast.bitmap<span style="color: #000000;">&#40;</span>SkyTop<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
			sky_right_material = <span style="color: #0033ff; font-weight: bold;">new</span> BitmapMaterial<span style="color: #000000;">&#40;</span>Cast.bitmap<span style="color: #000000;">&#40;</span>SkyRight<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> InitListeners<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, EnterFrame<span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">MOUSE_DOWN</span>, MouseDown<span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">MOUSE_UP</span>, MouseUp<span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">RESIZE</span>, Resize<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> EnterFrame<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>move<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
				cam.targetpanangle = <span style="color: #000000; font-weight:bold;">0.3</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">stage</span>.<span style="color: #004993;">mouseX</span> <span style="color: #000000; font-weight: bold;">-</span> lastMouseX<span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">+</span> lastPanAngle;
				cam.targettiltangle = <span style="color: #000000; font-weight:bold;">0.3</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">stage</span>.<span style="color: #004993;">mouseY</span> <span style="color: #000000; font-weight: bold;">-</span> lastMouseY<span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">+</span> lastTiltAngle;
			<span style="color: #000000;">&#125;</span>
			cam.hover<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			view.<span style="color: #004993;">render</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> MouseDown<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			lastPanAngle = cam.panangle;
			lastTiltAngle = cam.tiltangle;
			lastMouseX = <span style="color: #004993;">stage</span>.<span style="color: #004993;">mouseX</span>;
			lastMouseY = <span style="color: #004993;">stage</span>.<span style="color: #004993;">mouseY</span>;
			move = <span style="color: #0033ff; font-weight: bold;">true</span>;
			<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">MOUSE_LEAVE</span>, onStageMouseLeave<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> MouseUp<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			move = <span style="color: #0033ff; font-weight: bold;">false</span>;
			<span style="color: #004993;">stage</span>.<span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">MOUSE_LEAVE</span>, onStageMouseLeave<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> onStageMouseLeave<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			move = <span style="color: #0033ff; font-weight: bold;">false</span>;
			<span style="color: #004993;">stage</span>.<span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">MOUSE_LEAVE</span>, onStageMouseLeave<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> Resize<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			view.<span style="color: #004993;">x</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageWidth</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">3</span>;
			view.<span style="color: #004993;">y</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageHeight</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">3</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>Now,I personally think skyboxes are a good piece of knowledge to have, as they provide, in my opinion, an effective and fairly easy way to get a fairly natural looking environment quickly. Once you have a skybox in place, you can concentrate on the more important objects, and not making the surrounding environment look good.</p>
<p>There is also another way of creating sky-boxes and this is using the <a href="http://away3d.com/offlinedocs/Away3DAPIReferenceV2.1.html#Class-Skybox6" target="_blank">Skybox6 class</a>. This differs from the original method as instead of having six separate images, you have all your graphic in one jpg (png, or whatever).</p>
<p>I will also be trying to post versions of the examples in Papervision3d. This gives me a good understanding of how the engines differ, which ones I prefer and how they work.</p>
<p>You can download the whole thing (images as well!) here: <a href="http://harry-northover-code-store.googlecode.com/files/A3DSkyBox.zip" target="_blank">http://harry-northover-code-store.googlecode.com/files/A3DSkyBox.zip</a></p>
<p>Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2008/09/28/away3d-skyboxes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Artistic Flash.</title>
		<link>http://www.harrynorthover.com/blog/2008/09/27/artistic-flash/</link>
		<comments>http://www.harrynorthover.com/blog/2008/09/27/artistic-flash/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 16:33:07 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=198</guid>
		<description><![CDATA[I have just spent the last day or so polishing up on my generative art in flash. This basically means creating random motion using TweenLite or/and Away3d. Here are some sceen shots of what I am talking about: (Just click on the images to view them :)) These were made using a combination of TweenLite, [...]]]></description>
			<content:encoded><![CDATA[<p>I have just spent the last day or so polishing up on my generative art in flash. This basically means creating random motion using <a href="http://blog.greensock.com/tweenliteas3/" target="_blank">TweenLite</a> or/and <a href="http://www.away3d.org" target="_blank">Away3d</a>.</p>
<p>Here are some sceen shots of what I am talking about:</p>
<p><a href="http://www.harrynorthover.com/files/flash/RandomSquares.swf" target="_blank"><img class="alignnone size-full wp-image-199" title="Organic animation using TweenLite" src="http://www.harrynorthover.com/blog/wp-content/uploads/2008/09/tweenliteorganic.png" alt="" width="341" height="97" /></a></p>
<p><a href="http://www.harrynorthover.com/files/flash/3DOrganic.swf" target="_blank"><img class="alignnone size-full wp-image-200" title="Organic 3D" src="http://www.harrynorthover.com/blog/wp-content/uploads/2008/09/3dorganic.png" alt="" width="341" height="97" /></a></p>
<p><em>(Just click on the images to view them :))</em></p>
<p>These were made using a combination of TweenLite, Away3D and general brilliance :). The first one actually uses no 3d, and I made the second one to see how easily it would be the get the same (or close to) result, but in 3D space.</p>
<p>Here is the code for the first one, just past it in the first frame.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> gs.TweenFilterLite;
<span style="color: #0033ff; font-weight: bold;">import</span> gs.easing.Expo;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> Blur<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BlurFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BlurFilter</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">100</span>, <span style="color: #000000; font-weight:bold;">100</span>, <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#41;</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> BMBlur<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BlurFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BlurFilter</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">20</span>, <span style="color: #000000; font-weight:bold;">20</span>, <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> bmd<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">550</span>, <span style="color: #000000; font-weight:bold;">400</span>, <span style="color: #0033ff; font-weight: bold;">true</span>, 0x000000<span style="color: #000000;">&#41;</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> bm<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span>bmd<span style="color: #000000;">&#41;</span>;
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>bm<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> currentSquare<span style="color: #000000; font-weight: bold;">:</span>Box = <span style="color: #0033ff; font-weight: bold;">new</span> Box<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
currentSquare.<span style="color: #004993;">filters</span> = <span style="color: #000000;">&#91;</span>Blur<span style="color: #000000;">&#93;</span>;
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>currentSquare<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> mover_single<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
	TweenFilterLite.to<span style="color: #000000;">&#40;</span>currentSquare, .5,  <span style="color: #000000;">&#123;</span>   <span style="color: #004993;">x</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">550</span>,
						   <span style="color: #004993;">y</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">400</span>,
						   ease<span style="color: #000000; font-weight: bold;">:</span>Expo.easeInOut,
						   <span style="color: #004993;">alpha</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">100</span><span style="color: #3f5fbf;">/*Math.random() * 1*/</span>,
						   blurFilter<span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000;">&#123;</span><span style="color: #004993;">blurX</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">0</span>,
						   <span style="color: #004993;">blurY</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000000;">&#125;</span>,
						   tint<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">round</span><span style="color: #000000;">&#40;</span> <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">*</span>0xFFFFFF <span style="color: #000000;">&#41;</span>,
						   onComplete<span style="color: #000000; font-weight: bold;">:</span>mover_single <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;
mover_single<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, EnterFrame<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> EnterFrame<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
		bmd.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000000;">&#41;</span>;
		bmd.<span style="color: #004993;">applyFilter</span><span style="color: #000000;">&#40;</span>bmd, bmd.<span style="color: #004993;">rect</span>, <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Point</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>, BMBlur<span style="color: #000000;">&#41;</span>;
		bmd.<span style="color: #004993;">scroll</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">5</span>, <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #009900;">//trace(getChildAt(1));</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>And the second:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.containers.Scene3D;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.containers.View3D;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.primitives.Cube;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Bitmap</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">BitmapData</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">MovieClip</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.filters</span>.<span style="color: #004993;">BlurFilter</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span>.<span style="color: #004993;">Point</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> gs.TweenLite;
	<span style="color: #0033ff; font-weight: bold;">import</span> gs.easing.Expo;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Organic extends <span style="color: #004993;">MovieClip</span> <span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> scene<span style="color: #000000; font-weight: bold;">:</span>Scene3D = <span style="color: #0033ff; font-weight: bold;">new</span> Scene3D;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> view<span style="color: #000000; font-weight: bold;">:</span>View3D = <span style="color: #0033ff; font-weight: bold;">new</span> View3D<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> scene<span style="color: #000000; font-weight: bold;">:</span>scene, <span style="color: #004993;">x</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #004993;">y</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> square<span style="color: #000000; font-weight: bold;">:</span>Cube;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> bmd<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">stage</span>.<span style="color: #004993;">stageWidth</span>, <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageHeight</span>, <span style="color: #0033ff; font-weight: bold;">true</span>, 0x000000<span style="color: #000000;">&#41;</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> bm<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span>bmd<span style="color: #000000;">&#41;</span>;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> BMBlur<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BlurFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BlurFilter</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span>, <span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> Blur<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BlurFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BlurFilter</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">5</span>, <span style="color: #000000; font-weight:bold;">5</span>, <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#41;</span>;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Organic<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ADDED_TO_STAGE</span>, Init<span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, EnterFrame<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> Init<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
&nbsp;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>view<span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>bm<span style="color: #000000;">&#41;</span>;
&nbsp;
			view.camera.<span style="color: #004993;">zoom</span> = <span style="color: #000000; font-weight:bold;">1.5</span>;
&nbsp;
			square = <span style="color: #0033ff; font-weight: bold;">new</span> Cube<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #004993;">height</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">200</span>, <span style="color: #004993;">width</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">200</span>, material<span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;red#black&quot;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;
			square.<span style="color: #004993;">filters</span> = <span style="color: #000000;">&#91;</span>Blur<span style="color: #000000;">&#93;</span>;
			view.scene.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>square<span style="color: #000000;">&#41;</span>;
&nbsp;
			Mover<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #009900;">// This animates the box and then renders it/</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> Mover<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			TweenLite.to<span style="color: #000000;">&#40;</span>square, .5, <span style="color: #000000;">&#123;</span> <span style="color: #004993;">x</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">5550</span>,
						   <span style="color: #004993;">y</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">5400</span>,
						   z<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">200</span>,
						   ease<span style="color: #000000; font-weight: bold;">:</span>Expo.easeInOut,
						   onComplete<span style="color: #000000; font-weight: bold;">:</span>Mover,
						   <span style="color: #004993;">alpha</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">1</span>,
						   rotationX<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">360</span>,
						   rotationY<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">360</span>,
						   <span style="color: #004993;">height</span><span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">1000</span>,
						   <span style="color: #004993;">width</span><span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">1000</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;
			view.<span style="color: #004993;">render</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> EnterFrame<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			bmd.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000000;">&#41;</span>;
			bmd.<span style="color: #004993;">applyFilter</span><span style="color: #000000;">&#40;</span>bmd, bmd.<span style="color: #004993;">rect</span>, <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Point</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>, BMBlur<span style="color: #000000;">&#41;</span>;
			bmd.<span style="color: #004993;">scroll</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">5</span>, <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>;
&nbsp;
			view.<span style="color: #004993;">render</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>So there you go. Here are the links to download the whole package:</p>
<ul>
<li>The First one: <a href="http://harry-northover-code-store.googlecode.com/files/Random%20Squares.zip" target="_blank">http://harry-northover-code-store.googlecode.com/files/Random%20Squares.zip</a></li>
<li>The Second one: <a href="http://harry-northover-code-store.googlecode.com/files/3D%20Organic.zip" target="_blank">http://harry-northover-code-store.googlecode.com/files/3D%20Organic.zip</a></li>
</ul>
<p>Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2008/09/27/artistic-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some more Away3D :)</title>
		<link>http://www.harrynorthover.com/blog/2008/09/25/some-more-away3d/</link>
		<comments>http://www.harrynorthover.com/blog/2008/09/25/some-more-away3d/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 21:14:29 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Away3D]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=192</guid>
		<description><![CDATA[I have just spent the last hour or so playing with Away3d (again :)), and have just made this among other things. It is a sort of implementation of a particle system, but as I am still fairly rough around the edges with Away3D, its probably not the best. For a start, I am a [...]]]></description>
			<content:encoded><![CDATA[<p>I have just spent the last hour or so playing with Away3d (again :)), and have just made this among other things. It is a sort of implementation of a particle system, but as I am still fairly rough around the edges with Away3D, its probably not the best.</p>
<ol>
<li>For a start, I am a bit confused with the maths side of things. For example getting the most out of the view-ports and how to get the cameras in the right position. So this caused me that problem of all the dots being in the bottom <span style="text-decoration: line-through;">left</span> right corner. :(</li>
<li>When you go close up to the dots, some of them seem stretched.</li>
<li>Any ideas?</li>
</ol>
<p>Here&#8217;s a snap shot:</p>
<p><a href="http://www.harrynorthover.com/files/flash/3DParticle.swf" target="_blank"><img class="alignnone size-full wp-image-193" title="3D Particle" src="http://www.harrynorthover.com/blog/wp-content/uploads/2008/09/3d-particle.png" alt="" width="461" height="488" /></a></p>
<p>And the code:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.cameras.HoverCamera3D;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.containers.Scene3D;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.containers.View3D;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.primitives.Sphere;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">MouseEvent</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> ThreeDParticle extends <span style="color: #004993;">Sprite</span> <span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> cam<span style="color: #000000; font-weight: bold;">:</span>HoverCamera3D = <span style="color: #0033ff; font-weight: bold;">new</span> HoverCamera3D;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> scene<span style="color: #000000; font-weight: bold;">:</span>Scene3D = <span style="color: #0033ff; font-weight: bold;">new</span> Scene3D;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> view<span style="color: #000000; font-weight: bold;">:</span>View3D = <span style="color: #0033ff; font-weight: bold;">new</span> View3D<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #004993;">x</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">550</span>, <span style="color: #004993;">y</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">400</span>, scene<span style="color: #000000; font-weight: bold;">:</span>scene, camera<span style="color: #000000; font-weight: bold;">:</span>cam <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> numOfDots<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">50</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> sphere<span style="color: #000000; font-weight: bold;">:</span>Sphere;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> cameraSpeed<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">0.3</span>; <span style="color: #009900;">// Approximately same speed as mouse movement.</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> lastPanAngle<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> lastTiltAngle<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> lastMouseX<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> lastMouseY<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> move<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span>;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> ThreeDParticle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #009900;">// This is added so you can include this SWF in another.</span>
			<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ADDED_TO_STAGE</span>, Init<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> Init<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>view<span style="color: #000000;">&#41;</span>;
&nbsp;
			cam.<span style="color: #004993;">zoom</span> = <span style="color: #000000; font-weight:bold;">1</span>;
			cam.<span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">0</span>;
			cam.<span style="color: #004993;">y</span> = <span style="color: #000000; font-weight:bold;">0</span>;
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #000000; font-weight:bold;">0</span>; i <span style="color: #000000; font-weight: bold;">&amp;</span>lt;= numOfDots; i<span style="color: #000000; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
				sphere = <span style="color: #0033ff; font-weight: bold;">new</span> Sphere<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> material<span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;black#red&quot;</span>, radius<span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">20</span>, <span style="color: #004993;">x</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">1000</span>, <span style="color: #004993;">y</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">1000</span>, z<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">100</span>, segmentsH<span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">10</span>, segmentsW<span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">10</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;
				view.scene.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>sphere<span style="color: #000000;">&#41;</span>;
			<span style="color: #000000;">&#125;</span>
			<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, <span style="color: #004993;">enterFrame</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">MOUSE_DOWN</span>, <span style="color: #004993;">mouseDown</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">MOUSE_UP</span>, <span style="color: #004993;">mouseLeave</span><span style="color: #000000;">&#41;</span>;
&nbsp;
			view.<span style="color: #004993;">render</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">enterFrame</span><span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>move<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
				cam.targetpanangle = cameraSpeed <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">stage</span>.<span style="color: #004993;">mouseX</span> <span style="color: #000000; font-weight: bold;">-</span> lastMouseX<span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">+</span> lastPanAngle;
				cam.targettiltangle = cameraSpeed <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">stage</span>.<span style="color: #004993;">mouseY</span> <span style="color: #000000; font-weight: bold;">-</span> lastMouseY<span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">+</span> lastTiltAngle;
			<span style="color: #000000;">&#125;</span>
&nbsp;
			cam.hover<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			view.<span style="color: #004993;">render</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">mouseDown</span><span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
&nbsp;
			move = <span style="color: #0033ff; font-weight: bold;">true</span>;
			lastPanAngle = cam.targetpanangle;
			lastTiltAngle = cam.targettiltangle;
			lastMouseX = <span style="color: #004993;">stage</span>.<span style="color: #004993;">mouseX</span>;
			lastMouseY = <span style="color: #004993;">stage</span>.<span style="color: #004993;">mouseY</span>;
&nbsp;
			cam.hover<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			view.<span style="color: #004993;">render</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">mouseLeave</span><span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			move = <span style="color: #0033ff; font-weight: bold;">false</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>And here&#8217;s the link to download it all: <a href="http://harry-northover-code-store.googlecode.com/files/3D%20Particle.zip">http://harry-northover-code-store.googlecode.com/files/3D%20Particle.zip</a></p>
<p>Right there you go for tonight!</p>
<p>Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2008/09/25/some-more-away3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing with Away3D</title>
		<link>http://www.harrynorthover.com/blog/2008/09/13/playing-with-away3d/</link>
		<comments>http://www.harrynorthover.com/blog/2008/09/13/playing-with-away3d/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 19:55:02 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Getting Started]]></category>
		<category><![CDATA[Away3D]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=153</guid>
		<description><![CDATA[I have just spent a couple of hours last night getting to grips with Away3D. I just created a little demo that creates a few spheres and then adds an ENTER_FRAME event listener and responds to mouse movement. You can download the whole thing here: http://harry-northover-code-store.googlecode.com/files/Away3DBasics.zip Here is a screene: And here&#8217;s the code: 1 [...]]]></description>
			<content:encoded><![CDATA[<p>I have just spent a couple of hours last night getting to grips with Away3D. I just created a little demo that creates a few spheres and then adds an ENTER_FRAME event listener and responds to mouse movement.</p>
<p>You can download the whole thing here: <a href="http://harry-northover-code-store.googlecode.com/files/Away3DBasics.zip" target="_self">http://harry-northover-code-store.googlecode.com/files/Away3DBasics.zip</a></p>
<p>Here is a screene:</p>
<p><a href="http://www.harrynorthover.com/files/flash/Away3DBasics.swf" target="_blank"><img class="alignnone size-full wp-image-157" title="Away3D Basics" src="http://www.harrynorthover.com/blog/wp-content/uploads/2008/09/3d-screen1.jpg" alt="" width="461" height="546" /></a></p>
<p>And here&#8217;s the code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.cameras.HoverCamera3D;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.containers.View3D;
	<span style="color: #0033ff; font-weight: bold;">import</span> away3d.primitives.Sphere;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">MouseEvent</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> caurina.transitions.Tweener;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Away3DBasics extends <span style="color: #004993;">Sprite</span> <span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> stageHeightCenter<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageHeight</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">2</span> <span style="color: #000000; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">100</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> stageWidthCenter<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageWidth</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">2</span> <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">100</span>; 
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> cam<span style="color: #000000; font-weight: bold;">:</span>HoverCamera3D = <span style="color: #0033ff; font-weight: bold;">new</span> HoverCamera3D<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #004993;">zoom</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">1</span>, <span style="color: #004993;">focus</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">200</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> view<span style="color: #000000; font-weight: bold;">:</span>View3D = <span style="color: #0033ff; font-weight: bold;">new</span> View3D<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #004993;">x</span><span style="color: #000000; font-weight: bold;">:</span>stageWidthCenter, <span style="color: #004993;">y</span><span style="color: #000000; font-weight: bold;">:</span>stageHeightCenter, camera<span style="color: #000000; font-weight: bold;">:</span>cam <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Away3DBasics<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
&nbsp;
			cam.steps = <span style="color: #000000; font-weight:bold;">16</span>;
&nbsp;
			<span style="color: #009900;">// Add the view to the stage.</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>view<span style="color: #000000;">&#41;</span>;
&nbsp;
			<span style="color: #009900;">// Create 20 spheres.</span>
			<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #000000; font-weight:bold;">0</span>; i <span style="color: #000000; font-weight: bold;">&amp;</span>lt;= <span style="color: #000000; font-weight:bold;">20</span>; i<span style="color: #000000; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				<span style="color: #6699cc; font-weight: bold;">var</span> sphere<span style="color: #000000; font-weight: bold;">:</span>Sphere = <span style="color: #0033ff; font-weight: bold;">new</span> Sphere<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
				sphere.invertFaces<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
				sphere.<span style="color: #004993;">x</span> = <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">1000</span>;
				sphere.<span style="color: #004993;">y</span> = <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">1000</span>;
				sphere.z = <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">600</span>;
				sphere.rotationX = <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">360</span>;
				sphere.rotationY = <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">360</span>;
				view.scene.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>sphere<span style="color: #000000;">&#41;</span>;
			<span style="color: #000000;">&#125;</span>
&nbsp;
			<span style="color: #009900;">// Add Event listeners.</span>
			<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, onRun<span style="color: #000000;">&#41;</span>;
&nbsp;
			<span style="color: #009900;">// Render the scene...</span>
			cam.hover<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			view.<span style="color: #004993;">render</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #009900;">// This is the code for the ENTER_FRAME event.</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> onRun<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			cam.rotationX = <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">360</span>;
			cam.rotationY = <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">360</span>;
			cam.rotationZ = <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">360</span>;
			cam.<span style="color: #004993;">pan</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">360</span><span style="color: #000000;">&#41;</span>;
			Tweener.addTween<span style="color: #000000;">&#40;</span>cam, <span style="color: #000000;">&#123;</span> <span style="color: #004993;">zoom</span><span style="color: #000000; font-weight: bold;">:</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">stage</span>.<span style="color: #004993;">mouseY</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageHeight</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">4</span> <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">0.5</span>, <span style="color: #004993;">time</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">0.1</span>, transition<span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;easeInOutExpo&quot;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;
			cam.hover<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			view.<span style="color: #004993;">render</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>There you go! I will be doing a lot more stuff with Away3D so keep an eye out!</p>
<p>Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2008/09/13/playing-with-away3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Particle System</title>
		<link>http://www.harrynorthover.com/blog/2008/09/03/particle-system/</link>
		<comments>http://www.harrynorthover.com/blog/2008/09/03/particle-system/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 23:02:16 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=143</guid>
		<description><![CDATA[I have just started playing around with artistic art in Flash. I started off playing with particles, so here you go. I developed a simple Particle class, and here is how to implement it. To download the class: http://harry-northover-code-store.googlecode.com/files/Particle.zip To download the demo: http://harry-northover-code-store.googlecode.com/files/Demo.zip Here is a screene: Here&#8217;s the code: 1 2 3 4 [...]]]></description>
			<content:encoded><![CDATA[<p>I have just started playing around with artistic art in Flash. I started off playing with particles, so here you go. I developed a simple Particle class, and here is how to implement it.</p>
<p>To download the class: <a href="http://harry-northover-code-store.googlecode.com/files/Particle.zip" target="_self">http://harry-northover-code-store.googlecode.com/files/Particle.zip</a></p>
<p>To download the demo: <a href="http://harry-northover-code-store.googlecode.com/files/Demo.zip" target="_self">http://harry-northover-code-store.googlecode.com/files/Demo.zip</a></p>
<p>Here is a screene:</p>
<p><a href="http://www.harrynorthover.com/files/flash/ParticleTest.swf" target="_blank"><img class="alignnone size-full wp-image-144" title="Particle System Demo" src="http://www.harrynorthover.com/blog/wp-content/uploads/2008/09/particle.jpg" alt="" width="457" height="371" /></a></p>
<p>Here&#8217;s the code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> com.harrynorthover.particle.Particle;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> ParticleTest extends <span style="color: #004993;">Sprite</span> <span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> emmiterX<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageWidth</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">2</span>;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> emmiterY<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageHeight</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">2</span>;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> ParticleTest<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, onLoop, <span style="color: #0033ff; font-weight: bold;">false</span>, <span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> onLoop<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> p<span style="color: #000000; font-weight: bold;">:</span>Particle = <span style="color: #0033ff; font-weight: bold;">new</span> Particle<span style="color: #000000;">&#40;</span>emmiterX, emmiterY, <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">11</span> <span style="color: #000000; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">6</span>, <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">20</span>, <span style="color: #000000; font-weight:bold;">1</span>, <span style="color: #004993;">Math</span>.<span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> 0xFFFFFF, <span style="color: #000000; font-weight:bold;">50</span>, <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>p<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>To get this working, all you need to do is create a MovieClip with a linkage ID of &#8216;Ball&#8217;, and you should be ready to go.</p>
<p>So there you are! If anyone would like me to explain the code, feel free to contact me.</p>
<p>Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2008/09/03/particle-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Away3D &#8211; Getting Started</title>
		<link>http://www.harrynorthover.com/blog/2008/09/03/away3d-getting-started/</link>
		<comments>http://www.harrynorthover.com/blog/2008/09/03/away3d-getting-started/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 21:22:51 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Getting Started]]></category>
		<category><![CDATA[Away3D]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.harrynorthover.com/blog/?p=130</guid>
		<description><![CDATA[I have recently been trying to pick up Away3D. I have to say this engine is absolutly awesome! I have decided to build my portfolio using this, so this will help me get used to using the engine as well as hopefully creating a sweet site! :) During my efforts to find out more info [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently been trying to pick up <a href="http://away3d.com/" target="_blank">Away3D</a>. I have to say this engine is absolutly awesome!</p>
<p>I have decided to build my portfolio using this, so this will help me get used to using the engine as well as hopefully creating a sweet site! :)</p>
<p>During my efforts to find out more info and tutorials about this engine, I have found these links:</p>
<ul>
<li><a href="http://www.flashmagazine.com/tutorials/index/" target="_blank">http://www.flashmagazine.com/tutorials/index/</a> &#8211; This site has a whole host of tutorials and info on Away3D and Flash 3D in general.</li>
<li><a href="http://blog.paranoidferret.com/index.php/2008/03/28/getting-started-with-adobe-flex-and-away3d/" target="_blank">http://blog.paranoidferret.com/index.php/2008/03/28/getting-started-with-adobe-flex-and-away3d/ </a>- Getting Started with Away3D and Adobe Flex.</li>
<li><a href="http://www.thetechlabs.com/3d/setting-up-away3d-with-flex/" target="_blank">http://www.thetechlabs.com/3d/setting-up-away3d-with-flex/</a> &#8211; Setting up and using Away3D in Flex.</li>
<li><a href="http://flashenabledblog.com/2008/09/02/frameworks-away3d-away3d-web-roundup-tutorials-and-examples/" target="_blank">http://flashenabledblog.com/2008/09/02/frameworks-away3d-away3d-web-roundup-tutorials-and-examples/</a> &#8211; This is a haven for info on Away3D tutorials, samples and general info!</li>
<li><a href="http://www.lemlinh.com/flash-tutorial-away3d-pathextrude-cords-ribbons" target="_blank">http://www.lemlinh.com/flash-tutorial-away3d-pathextrude-cords-ribbons</a> &#8211; Away3D Path Extrude &#8211; Cords And Ribbons.</li>
<li><a href="http://blog.arnomanders.nl/index.php/archives/imageviewer3d-final-release/" target="_blank">http://blog.arnomanders.nl/index.php/archives/imageviewer3d-final-release/ </a>- This is a very cool application demonstrating the powers of Away3D.</li>
<li><a href="http://www.closier.nl/playground/greenplanet.html" target="_blank">http://www.closier.nl/playground/greenplanet.html</a> &#8211; This is a very cool example, indeed! Green Planet!!</li>
<li><a href="http://flash-3d.org/en/Create-the-Earth-and-heavens-in-less-than-an-hour-with-Away3D" target="_blank">http://flash-3d.org/en/Create-the-Earth-and-heavens-in-less-than-an-hour-with-Away3D</a> &#8211; This is a great tutorial for Away3D. This could be used for some sort of language selection of area selection or even a contact form. The potential is infinite&#8230; :)</li>
<li><a href="http://www.ultrashock.com/forums/third-party-tools/away3d-93241.html" target="_blank">http://www.ultrashock.com/forums/third-party-tools/away3d-93241.html</a> &#8211; This sheds on Away3D and how it differs from Papervision3D.</li>
<li><a href="http://www.sharingb.com/programming/away3d/focus-on-away3d" target="_blank">http://www.sharingb.com/programming/away3d/focus-on-away3d</a> &#8211; Some very cool examples of Away3D in action.</li>
<li><a href="http://drawlogic.com/2008/04/11/3ds-parser-added-to-papervision-from-away3d/" target="_blank">http://drawlogic.com/2008/04/11/3ds-parser-added-to-papervision-from-away3d/</a> &#8211; 3DS Parser Added to Papervision3D from Away3D.</li>
<li><a href="http://docs.google.com/View?docid=dczs397v_12ftrscdd9" target="_blank">http://docs.google.com/View?docid=dczs397v_12ftrscdd9</a> &#8211; Getting started with Away3D.</li>
<li><a href="http://www.closier.nl/playground/temple.html" target="_blank">http://www.closier.nl/playground/temple.html</a> &#8211; This is a very cool example indeed!</li>
</ul>
<p>So there you go for starters. I hope this helps you guys out!</p>
<p>Harry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harrynorthover.com/blog/2008/09/03/away3d-getting-started/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 4.278 seconds -->
