<?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>The Highlander Blog &#187; flash builder</title>
	<atom:link href="http://www.highlander.co.uk/blog/tag/flash-builder/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.highlander.co.uk/blog</link>
	<description>Thoughts and musing from within Highlander</description>
	<lastBuildDate>Thu, 02 Feb 2012 12:05:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Plotting a sine wave</title>
		<link>http://www.highlander.co.uk/blog/2010/12/28/plotting-a-sine-wave/</link>
		<comments>http://www.highlander.co.uk/blog/2010/12/28/plotting-a-sine-wave/#comments</comments>
		<pubDate>Tue, 28 Dec 2010 17:05:31 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash builder]]></category>

		<guid isPermaLink="false">http://www.highlander.co.uk/blog/?p=933</guid>
		<description><![CDATA[Recently a trainee asked me &#8211; How do we go about plotting a sine wave?  We were doing a basic ActionScript course and I was explaining the Drawing API, and how we could easily draw circles and rectangles etc. We then got into working out distances and I mentioned that it is all down to <a href='http://www.highlander.co.uk/blog/2010/12/28/plotting-a-sine-wave/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Recently a trainee asked me &#8211; How do we go about plotting a sine wave?  We were doing a basic ActionScript course and I was explaining the Drawing API, and how we could easily draw circles and rectangles etc. We then got into working out distances and I mentioned that it is all down to Pythagoras&#8217; theorem, and from there we talked about cosine and sine and the question was  - How do we go about plotting a sine wave?</p>
<p>Well, drawing anything in ActionScript 3 can be accomplished by the lineTo() function, and it would have to run off an ENTER_FRAME event, so that gave us the skeleton functionality of our code…</p>
<div><span style="color: #99ccff">stage.addEventListener(Event.ENTER_FRAME,plotCurve);</span></div>
<div><span style="color: #99ccff">function plotCurve(e:Event):void</span></div>
<div><span style="color: #99ccff">{</span></div>
<div style="padding-left: 30px"><span style="color: #99ccff">//</span></div>
<div><span style="color: #99ccff">}</span></div>
<p>I also needed something to draw in, so I need a Sprite, and I also need to hold an x and y co-ord, so at the top of my code I put…</p>
<p><span style="color: #99ccff">var plotSprite:Sprite = new Sprite();<br />
plotSprite.x = stage.stageWidth/2;<br />
plotSprite.y = stage.stageHeight/2;<br />
addChild(plotSprite);<br />
var myX:Number = 0;<br />
var myY:Number = 0;<br />
plotSprite.graphics.lineStyle(.5,0xff0000);</span></p>
<p>And then I paused and thought &#8211; How do we plot a sine wave?</p>
<p>Well I knew we were plotting x vs y, so remembering my O level maths, all we needed was a simple sine function. And all we needed to do now was translate that into usable code. The lineTo() function takes an x and y, and since the equation we need is y = sinx, which is y = sin(x), our code now becomes…</p>
<div><span style="color: #99ccff">stage.addEventListener(Event.ENTER_FRAME,plotCurve);</span></div>
<div><span style="color: #99ccff">function plotCurve(e:Event):void</span></div>
<div><span style="color: #99ccff">{</span></div>
<div style="padding-left: 30px">
<p><span style="color: #99ccff"> </span></p>
<div><span style="color: #99ccff">plotSprite.graphics.lineTo(myX,Math.sin(myX));</span></div>
</div>
<div><span style="color: #99ccff">}</span></div>
<p>Now we are going to plot a new dot on every ENTER_FRAME, and the dot needs to move, which means we need to change our x co-ord…</p>
<div><span style="color: #99ccff">function plotCurve(e:Event):void</span></div>
<div><span style="color: #99ccff">{</span></div>
<div><span style="color: #99ccff"><br />
</span></div>
<div style="padding-left: 30px"><span style="color: #99ccff">plotSprite.graphics.lineTo(myX,Math.sin(myX));</span></div>
<div style="padding-left: 30px"><span style="color: #99ccff">myX+=.1;</span></div>
<div><span style="color: #99ccff">}</span></div>
<div>When you run it now, you do indeed get a sine wave, but a very small sine wave. So to up the amplitude and change the frequency we change the lineTo line to…</div>
<div>
<p><span style="color: #000000"> </span></p>
<div><span style="color: #99ccff">plotSprite.graphics.lineTo(myX*30,Math.sin(myX)*30);</span></div>
</div>
<div>This gives us a decent size graph. But next I wanted it to move back whilst it was generating this infinite wave, and also give it a drop shadow and try and see what some rotation does…</div>
<div>
<div><span style="color: #99ccff">import flash.display.Sprite;</span></div>
<div><span style="color: #99ccff">import flash.events.Event;</span></div>
<div><span style="color: #99ccff">import flash.display.Shape;</span></div>
<div><span style="color: #99ccff">import flash.filters.DropShadowFilter;</span></div>
<div><span style="color: #99ccff"><br />
</span></div>
<div><span style="color: #99ccff">var plotSprite:Sprite = new Sprite();</span></div>
<div><span style="color: #99ccff">plotSprite.x = stage.stageWidth/2;</span></div>
<div><span style="color: #99ccff">plotSprite.y = stage.stageHeight/2;</span></div>
<div><span style="color: #99ccff">addChild(plotSprite);</span></div>
<div><span style="color: #99ccff">var myX:Number = 0;</span></div>
<div><span style="color: #99ccff">var myY:Number = 0;</span></div>
<div><span style="color: #99ccff">var dropShadow:DropShadowFilter = new DropShadowFilter();</span></div>
<div><span style="color: #99ccff">dropShadow.color = 0xcc0000;</span></div>
<div><span style="color: #99ccff">plotSprite.filters = [dropShadow];</span></div>
<div><span style="color: #99ccff">plotSprite.graphics.lineStyle(.5,0xff0000);</span></div>
<div><span style="color: #99ccff">stage.addEventListener(Event.ENTER_FRAME,plotCurve);</span></div>
<div><span style="color: #99ccff">function plotCurve(e:Event):void</span></div>
<div><span style="color: #99ccff">{</span></div>
<div style="padding-left: 30px"><span style="color: #99ccff">plotSprite.graphics.lineTo(myX*30,Math.sin(myX)*30);</span></div>
<div style="padding-left: 30px"><span style="color: #99ccff">myX+=.1;</span></div>
<div style="padding-left: 30px"><span style="color: #99ccff">plotSprite.x-=3;//this line is to move the curve back whilst new points are being drawn</span></div>
<div style="padding-left: 30px"><span style="color: #99ccff">plotSprite.rotationY+=1;</span></div>
<div><span style="color: #99ccff">}</span></div>
<div>…and voilá this is what we get…</div>
<div>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_sine-plot_1708228114"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="http://www.highlander.co.uk/blog/files/2010/12/sine-plot.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.highlander.co.uk/blog/files/2010/12/sine-plot.swf"
			name="fm_sine-plot_1708228114"
			width="400"
			height="300">
	<!--<![endif]-->
		<a target="_blank" href="http://get.adobe.com/flashplayer/"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
</div>
<div>Other things to try are getting it to rotate around a centre, having the curve fade off (ratter than have it move back), and maybe plot other curves and add other options.</div>
<div>It was a nice simple and fun exercise, and here are the source files if you are interested…</div>
<div><a href="http://www.highlander.co.uk/blog/files/2010/12/sine_plot.zip">sine_plot</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.highlander.co.uk/blog/2010/12/28/plotting-a-sine-wave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaning your Flash Builder projects</title>
		<link>http://www.highlander.co.uk/blog/2010/07/23/cleaning-your-flash-builder-projects/</link>
		<comments>http://www.highlander.co.uk/blog/2010/07/23/cleaning-your-flash-builder-projects/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 08:41:36 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[flash builder]]></category>

		<guid isPermaLink="false">http://www.highlander.co.uk/blog/?p=383</guid>
		<description><![CDATA[In training, I frequently create examples on my mac, get them working, tweak them, and then copy them over to my trainees pcs. In doing so, I have come across a few problems that I thought I would share with you, and the solutions (not perfect) that I have  used to fix these issues. What <a href='http://www.highlander.co.uk/blog/2010/07/23/cleaning-your-flash-builder-projects/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>In training, I frequently create examples on my mac, get them working, tweak them, and then copy them over to my trainees pcs. In doing so, I have come across a few problems that I thought I would share with you, and the solutions (not perfect) that I have  used to fix these issues.</p>
<p>What I normally do is create a new Actionscript project on my mac. Create and test the files and get everything ready for the training.</p>
<p>Then I copy the whole project folder onto a training pc, and sometimes I end up with problems. For example…</p>
<p>I frequently copy a project and then paste it. then I re-name the project and also the main as file to the new project name. But doing this can cause problems sometimes…</p>
<p>…when copying and pasting projects you end up with copies of previous projects still in the bin-debug folder (which will bloat up your project size)</p>
<p>…and also there occasionally seems to crop up a problem whereby the project still looks for another as file (say Example13.as) when the project is Example15, and has been named as such, and the main application as file has been set as such. The project seems to get stuck.</p>
<p>So I found that if you go to Project &gt; Clean… and clean your projects, this should get rid of most of your problems.</p>
<p>The main issue that I could not seem to get rid of (sometimes) is that when you go to the properties of your project and look at the Application ActionScript section &#8211; you get a link to the old as file. Flash Builder knows it has been deleted, but it is still there. If you remove it from the list, something in the project still looks for it, and refuses to run your application without it.</p>
<p>The only solution I found then was to create a brand new project, name it how you want, and then copy/paste your code over.</p>
<p>So cleaning your Flash Builder projects seems to help a lot with problems like these, but not always.</p>
<p>I hope this helps everyone who gets issues like those mentioned above, and if anyone has any better solutions let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.highlander.co.uk/blog/2010/07/23/cleaning-your-flash-builder-projects/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Blueprint &#8211; a Flash Builder extension</title>
		<link>http://www.highlander.co.uk/blog/2010/07/10/blueprint-a-flash-builder-extension/</link>
		<comments>http://www.highlander.co.uk/blog/2010/07/10/blueprint-a-flash-builder-extension/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 06:57:37 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[flash builder]]></category>

		<guid isPermaLink="false">http://www.highlander.co.uk/blog/?p=372</guid>
		<description><![CDATA[Using Flash Builder a lot as I do I am always on the look out for new extensions.  Recently I came across a lovely new extension from Adobe. It is called Blueprint. Blueprint &#8211; a Flash Builder Extension, allows you to search the web for examples of code, directly within Flash Builder. For example, suppose <a href='http://www.highlander.co.uk/blog/2010/07/10/blueprint-a-flash-builder-extension/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Using Flash Builder a lot as I do I am always on the look out for new extensions.  Recently I came across a lovely new extension from Adobe. It is called Blueprint.</p>
<p>Blueprint &#8211; a Flash Builder Extension, allows you to search the web for examples of code, directly within Flash Builder.</p>
<p>For example, suppose you are  tweening and want to see what examples you can find regard the Tween class. Just highlight Tween and press CTL-B (Mac) or Alt &#8211; B (PC).</p>
<p>This brings up the Blueprint panel, with the search results.</p>
<p style="text-align: center;"><a href="http://www.highlander.co.uk/blog/files/2010/07/tween.jpg"><img class="size-medium wp-image-375 aligncenter" src="http://www.highlander.co.uk/blog/wp-content/uploads/2011/07/tween-300x149.jpg" alt="Blueprint panel" width="300" height="149" /></a></p>
<p style="text-align: left;">Now you will the results of a web search regarding the code you highlighted.</p>
<p style="text-align: left;">You can further refine your query by typing in additional terms, resize the Blueprint window to see more, and use the down arrow key to see the next example.</p>
<p style="text-align: left;">If you find something you like, just highlight it and press return and the code will be pasted into your file.</p>
<p style="text-align: left;">You do not have to highlight anything, you can just type something in a line and press CTL-B or just press CTL-B and type in something.</p>
<p style="text-align: left;">If you find something important, the current search can be pinned as a separate panel (just click on the pin icon top-right), so you can have it there permanently.</p>
<p style="text-align: left;">To install Blueprint just add the following to your software updates, as a new remote site…</p>
<p style="text-align: left;">http://download.macromedia.com/pub/labs/blueprint/fb4/</p>
<p style="text-align: left;">… and install. Here are the installation instructions…</p>
<p style="text-align: left;"><a target="_blank" rel="nofollow" href="http://labs.adobe.com/wiki/index.php/Blueprint:Installation_Instructions" target="_blank">http://labs.adobe.com/wiki/index.php/Blueprint:Installation_Instructions</a></p>
<p style="text-align: left;">This looks like a lovely utility and seems to work well, I would advise everyone to try it out and see for yourself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.highlander.co.uk/blog/2010/07/10/blueprint-a-flash-builder-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ByteArrays and videos with Actionscript 3</title>
		<link>http://www.highlander.co.uk/blog/2010/05/15/bytearrays-and-videos-with-actionscript-3/</link>
		<comments>http://www.highlander.co.uk/blog/2010/05/15/bytearrays-and-videos-with-actionscript-3/#comments</comments>
		<pubDate>Sat, 15 May 2010 12:31:06 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash builder]]></category>

		<guid isPermaLink="false">http://www.highlander.co.uk/blog/?p=316</guid>
		<description><![CDATA[ByteArrays are very useful. I use them when saving image data out in the form of jpgs or pngs. You can also use them with sound data. However someone recently asked me what about video? Can we use them to hold video data? Well, pre-flash player 10.1 the answer is no. But now with flash <a href='http://www.highlander.co.uk/blog/2010/05/15/bytearrays-and-videos-with-actionscript-3/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>ByteArrays are very useful. I use them when saving image data out in the form of jpgs or pngs. You can also use them with sound data.</p>
<p>However someone recently asked me what about video? Can we use them to hold video data?</p>
<p>Well, pre-flash player 10.1 the answer is no. But now with flash player 10.1 you can use ByteArrays and videos with Actionscript 3. The methods concerned are…</p>
<p>appendBytes()</p>
<p>appendBytesAction()</p>
<p>…running off the NetStream class.</p>
<p>I have not used them myself yet but it looks like to you may be able to now create, edit, and send your own video data (flvs only at this point from what I can make out). Something I will definitely keep an eye out for in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.highlander.co.uk/blog/2010/05/15/bytearrays-and-videos-with-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing class for Actionscript 3</title>
		<link>http://www.highlander.co.uk/blog/2010/04/08/testing-class/</link>
		<comments>http://www.highlander.co.uk/blog/2010/04/08/testing-class/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 18:24:28 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash builder]]></category>

		<guid isPermaLink="false">http://www.highlander.co.uk/blog/?p=144</guid>
		<description><![CDATA[Frequently when playing around with code I need an object to play around with. So I created a Ball.as class. This testing class for Actionscript 3  is useful because it will just create a ball, with a default size and colour, which I can override if I wish. I have also given it a bounceEffect() <a href='http://www.highlander.co.uk/blog/2010/04/08/testing-class/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Frequently when playing around with code I need an object to play around with. So I created a Ball.as class. This testing class for Actionscript 3  is useful because it will just create a ball, with a default size and colour, which I can override if I wish.</p>
<p>I have also given it a bounceEffect() and bounce() public methods.</p>
<p>These will give a bounce effect when it hits a boundary and the latter will make it move and bounce from the boundaries.  The boundary at the moment is just stage.stageWidth and stage.stageHeight, but I plan on allowing an object to be sent so that the instance can use its hight and width as the boundaries for bouncing.</p>
<p>There are also some getters and setters dealing with colour and radius, etc.</p>
<p>To stop the movement I created a haltObject() public function.</p>
<p>I just threw this together in a few minutes but I find it very useful so I thought I would share it with everyone.</p>
<p><a href="http://www.highlander.co.uk/blog/files/2010/04/Ball.zip">Ball</a></p>
<p>Here is an example of its use…</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;font: 11.0px Monaco"><span> </span><span style="color: #80a9d4">var</span> myball:Ball = <span style="color: #343efc">new</span> Ball();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;font: 11.0px Monaco"><span> </span>addChild(myball);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;font: 11.0px Monaco"><span> </span>myball.bounceEffect();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;font: 11.0px Monaco"><span> </span>myball.bounce();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;font: 11.0px Monaco">
<p style="margin: 0.0px 0.0px 0.0px 0.0px;font: 11.0px Monaco">
<p style="margin: 0.0px 0.0px 0.0px 0.0px;font: 11.0px Monaco">
<p style="margin: 0.0px 0.0px 0.0px 0.0px;font: 11.0px Monaco"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size: 13px;line-height: 19px">If anyone finds any issues, please let me know and I will update it, and if you find it useful let me know as well. I am sure that it is not perfect <img src='http://www.highlander.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </span></p>
<p>Any thoughts on improvements and additions I will also be happy to receive.</p>
<p>Also note that i have zipped up the file as a Flash Builder project, so that you can just import the whole project if you use Flash Builder. Otherwise just go to the src folder and dig out Ball.as</p>
]]></content:encoded>
			<wfw:commentRss>http://www.highlander.co.uk/blog/2010/04/08/testing-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Box2DFlash 2.1 relationships</title>
		<link>http://www.highlander.co.uk/blog/2010/02/22/box2dflash-2-1-relationships/</link>
		<comments>http://www.highlander.co.uk/blog/2010/02/22/box2dflash-2-1-relationships/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 19:41:05 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[Box2DFlash]]></category>
		<category><![CDATA[flash builder]]></category>

		<guid isPermaLink="false">http://www.highlander.co.uk/blog/?p=126</guid>
		<description><![CDATA[As I mentioned previously, Box2DFlash 2.1 is quite different from previous versions of Box2DFlash. The major differences that I have found so far, are related to how to setup your world and your bodies (bearing in mind that I have only just started with Box2DFlash, and do not know the previous versions). It took me <a href='http://www.highlander.co.uk/blog/2010/02/22/box2dflash-2-1-relationships/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>As I mentioned previously, Box2DFlash 2.1 is quite different from previous versions of Box2DFlash.</p>
<p>The major differences that I have found so far, are related to how to setup your world and your bodies (bearing in mind that I have only just started with Box2DFlash, and do not know the previous versions).</p>
<p>It took me a while to get my head around the Box2DFlash 2.1 relationship between fixtures, shapes, and bodies.</p>
<p>So here is a simple graphic that I have created, showing the relationship between a b2Body (your body), a b2BodyDef (body definition, holding information like angle, userData, position, etc), a b2FixtureDef (fixture definition holding information about the physics of the object, i.e. friction, restitution, density, and shape, etc), and a b2PolygonShape (if you are using polygons, and this holds information about the actual shape of your body).</p>
<p>This is to be considered a work in progress, and as I continue with Box2DFlash I may change this.</p>
<p>But for now use it as a good approximation and aide memoire.</p>
<div id="attachment_135" class="wp-caption aligncenter" style="width: 745px"><a href="http://www.highlander.co.uk/blog/wp-content/uploads/2011/07/Box2D-notes4.jpg"><img class="size-full wp-image-135" src="http://www.highlander.co.uk/blog/wp-content/uploads/2011/07/Box2D-notes4.jpg" alt="Box2DFlash body overview" width="735" height="519" /></a><p class="wp-caption-text">Box2DFlash body overview</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.highlander.co.uk/blog/2010/02/22/box2dflash-2-1-relationships/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Box2DFlash</title>
		<link>http://www.highlander.co.uk/blog/2010/02/16/using-box2dflash/</link>
		<comments>http://www.highlander.co.uk/blog/2010/02/16/using-box2dflash/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 22:27:11 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[Box2DFlash]]></category>
		<category><![CDATA[classes]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[flash builder]]></category>

		<guid isPermaLink="false">http://www.highlander.co.uk/blog/?p=122</guid>
		<description><![CDATA[I recently decided to have a play with Box2DFlash. This is a port of a popular 2D physics engine that has been ported to Actionscript 3, Java, C#, etc. A lot of games use Box2DFlash and so I thought it was about time to play around with it. Also, i thought it would be a <a href='http://www.highlander.co.uk/blog/2010/02/16/using-box2dflash/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I recently decided to have a play with Box2DFlash. This is a port of a popular 2D physics engine that has been ported to Actionscript 3, Java, C#, etc.</p>
<p>A lot of games use Box2DFlash and so I thought it was about time to play around with it.</p>
<p>Also, i thought it would be a nice idea to blog about my progress. I will be using Flash Builder 4 (beta) to do all my work in, but the files can be used in Flash, or a.n.other development environment.</p>
<p>Firstly you will need to download the files from here…</p>
<p><a target="_blank" rel="nofollow" href="http://sourceforge.net/projects/box2dflash/develop">http://sourceforge.net/projects/box2dflash/develop</a> (svn)</p>
<p>…or from here…</p>
<p><a target="_blank" rel="nofollow" href="http://www.box2dflash.org/download" target="_blank">http://box2dflash.boristhebrave.com/download</a></p>
<p>Check the latter link to see various examples of how you can use this engine.</p>
<p>The download also contains some test files, so if you do download them, have a look at the test files &#8211; these will give you an insight in how things work.</p>
<p>I will also be using the latest version, 2.1a, and a word of warning &#8211; there is a massive difference between this version and previous versions. As a result, most of the tutorials you will see on the web will not work with 2.1a, so i thought i would use this as an excuse to investigate Box2DFlash 2.1a and see how i can play around with it.</p>
<p>So i will be using Box2DFlash to create various projects in Flash Builder and i will post the code and the results here.</p>
<p>See you soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.highlander.co.uk/blog/2010/02/16/using-box2dflash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Actionscript 3 and particles</title>
		<link>http://www.highlander.co.uk/blog/2010/01/01/actionscript-3-and-particles/</link>
		<comments>http://www.highlander.co.uk/blog/2010/01/01/actionscript-3-and-particles/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 10:55:31 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[particles]]></category>

		<guid isPermaLink="false">http://www.highlander.co.uk/blog/?p=76</guid>
		<description><![CDATA[Happy new year everybody &#8211; and in january this year I am in the process of creating a new, advanced, actionscript 3 course &#8211; during which I decided to do some particle work. Here are some particle systems that I came across in the process… Flint Pulse Desuade Stardust …the latter is a new system, <a href='http://www.highlander.co.uk/blog/2010/01/01/actionscript-3-and-particles/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Happy new year everybody &#8211; and in january this year I am in the process of creating a new, advanced, actionscript 3 course &#8211; during which I decided to do some particle work.</p>
<p>Here are some particle systems that I came across in the process…</p>
<p style="padding-left: 30px"><a target="_blank" rel="nofollow" href="http://flintparticles.org/" target="_blank">Flint</a><br />
<a target="_blank" rel="nofollow" href="http://www.rogue-development.com/pulseParticles.html" target="_blank">Pulse</a><br />
<a target="_blank" rel="nofollow" href="http://desuade.com/" target="_blank">Desuade</a><br />
<a target="_blank" rel="nofollow" href="http://code.google.com/p/stardust-particle-engine/" target="_blank">Stardust</a></p>
<p>…the latter is a new system, and I must say that I am impressed.</p>
<p>It is a nice system, easy to use, good documentation, and some lovely demos.</p>
<p>In particular, have a look at this one…</p>
<p><a target="_blank" rel="nofollow" href="http://clockmaker.jp/blog-en/2009/12/stardust-butterfly/" target="_blank">Butterflies</a></p>
<p>Check Stardust out, you will not be disappointed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.highlander.co.uk/blog/2010/01/01/actionscript-3-and-particles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Actionscript 3 framework &#8211; HYPE</title>
		<link>http://www.highlander.co.uk/blog/2009/12/15/actionscript-3-framework-hype/</link>
		<comments>http://www.highlander.co.uk/blog/2009/12/15/actionscript-3-framework-hype/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 14:10:46 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[frameworks]]></category>

		<guid isPermaLink="false">http://www.highlander.co.uk/blog/?p=57</guid>
		<description><![CDATA[I have just found a new framework called HYPE. It looks to be a lovely actionscript 3 framework for coders and con-coders alike to easily create effects, and i plan to have lots of fun with it You will need some basic as3 knowledge, but you can quickly get results with a minimal amount of <a href='http://www.highlander.co.uk/blog/2009/12/15/actionscript-3-framework-hype/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I have just found a new framework called HYPE. It looks to be a lovely actionscript 3 framework for coders and con-coders alike to easily create effects, and i plan to have lots of fun with it <img src='http://www.highlander.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>You will need some basic as3 knowledge, but you can quickly get results with a minimal amount of coding, and there are some lovely examples on the HYPE website.</p>
<p>Have a look at it and let me know what you think</p>
<p><a target="_blank" rel="nofollow" href="http://hype.joshuadavis.com/" target="_blank">hype</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.highlander.co.uk/blog/2009/12/15/actionscript-3-framework-hype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the default font and colours in Flash Builder</title>
		<link>http://www.highlander.co.uk/blog/2009/11/24/changing-the-default-font-and-colours-in-flash-builder/</link>
		<comments>http://www.highlander.co.uk/blog/2009/11/24/changing-the-default-font-and-colours-in-flash-builder/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 16:10:21 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[preferences]]></category>

		<guid isPermaLink="false">http://www.highlander.co.uk/blog/?p=45</guid>
		<description><![CDATA[Whilst I love Flash Builder, it is somewhat daunting navigating the large amount of preferences. So, if you wish to change the font, size, and colour of your editing window here is where you go… Window &#62; Preferences &#62; General &#62; Appearance &#62; Colours &#38; Fonts &#62; Basic &#62; Text Font For the background colour <a href='http://www.highlander.co.uk/blog/2009/11/24/changing-the-default-font-and-colours-in-flash-builder/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Whilst I love Flash Builder, it is somewhat daunting navigating the large amount of preferences. So, if you wish to change the font, size, and colour of your editing window here is where you go…</p>
<p style="padding-left: 30px">Window &gt; Preferences &gt; General &gt; Appearance &gt; Colours &amp; Fonts &gt; Basic &gt; Text Font</p>
<p>For the background colour and stuff like that you go to …</p>
<p style="padding-left: 30px">Window &gt; Preferences &gt; General &gt; (and click on the text) Text Editors</p>
<p>At the bottom of the panel you will now Foreground colour, Background colour etc.</p>
<p>One to be aware of &#8211; Flash Builder/Eclipse has a somewhat non-standard interface compared to most apps that run on a mac (or a pc for that matter). For example, the Preferences in the Window menu has no ellipsis (…) which is used to indicate that a dialog will appear.</p>
<p>Also, you can click on a Preference title (like Text Editors) and you will see choices, as well as clicking on all the options below a title. So it can be confusing as to where things are and how to access them.</p>
<p>Anyway, enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.highlander.co.uk/blog/2009/11/24/changing-the-default-font-and-colours-in-flash-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

