Many of you may of seen Pixars recent movie UP. In the movie the main character manages to take flight in his house by attaching dozens of inflatable balloons to the roof. Seems a bit far fetched don’t you think? Obviously the guys at Pixar aren’t too concerned with the laws of physics.
Well here at fatlinesofcode we don’t mind if cartoons break the laws of physcis either. But we do love to test them.
I have built a fun prototype game…
Box2D Ballooning
10th October 2009 — actionscript
Pixelated video effect [Part II]
13th July 2009 — actionscript

I few weeks ago I posted a pixelation effect. I have since optimised the code and also added in support for webcam input.
Checkout the demo and source code below.
…Read morePixelated video effect
21st May 2009 — actionscript
I have been experimenting more and more with bitmapdata recently. Checkout this pixelation effect I have created for flash video.
Here is how it works. There is an onEnterFrame function which first creates a new Bitmap object from the video source data. A grid of smaller bitmaps is then created from this large bitmap. Each one of the smaller bitmaps is analysied for it’s average color and brightness. The z property (flash 10) is then set to the inverse of brightness.…
…Read moreRuntime pixel snapping
12th May 2009 — actionscript
Lets set the scene: your lazy. You got a sweet a design in photoshop and now you need to bring it to life in flash. Now remember your lazy so your going to use flash’s PSD importer to import the layers into flash. What a timer saver. Flash has has made movieclips and text layers from the photoshop layers, nice. You hookup some functions and publish the file. But something is wrong, some the text looks a little fuzzy and some…
…Read moreSWFAddress 2.2 ♥ swfobject 2.0
2nd April 2009 — actionscript
SWFAddress is the amazingly easy to use solution for deep linking in flash. Once setup its simply a case of calling SWFAddress.setValue("myfolder") to change the browser location bar and using SWFAddress.getValue()to get the current url when SWFAddressEvent.CHANGE is triggered.
In fact SWFAddress is so simple to use that when something goes wrong it hard to find the problem because there are no options to change. The difficulty I ran into recently was when I upgraded to the latest version 2.2 For an inexplicable reason,…
Debugging SWFs within the browser
28th March 2009 — actionscript
If your anything like me use you use the trace statement feverishly when developing a flash project, the trace output is the available within the flash IDE and debugging is a straightfoward process. The problem I have found with using trace for debugging is when you move the project into a browser environment. I frequently find that the swf functions slightly different or there are bugs which cause the swf to silently die. There is however a great solution for…
The Sky is falling
20th January 2009 — personal
Vancouver Downtown, originally uploaded by philipandrews.
Its offical, up is the new down. Apologies to whoever took this photo, it arrived via a chain email and I had to share it.
I hear that Lando Calrissian is going to be the new mayor.
Water droplet effect
20th November 2008 — actionscript
This is an example of how to use the actionscript displacement filter and bitmapData to create a sliding water droplet effect.
…Read moreFlash 3D models
16th September 2008 — actionscript
I’ve been playing around with latest version of Papervision. I found this great tutorial on how to load Collada mesh models. Here is a little swf I mashed up. It uses 2 collada models but groups them together as one object with actionscript. Tweener is used to control the animation and mouse events. You view the AS source and DAE model files here.
…Read moreBC tax calculator
7th September 2008 — javascript
This is a simple tax calculator that I whipped together for calculating your income after tax in BC, Canada. It should be useful for anyone that works on a contract or hourly rate. Please note this does not include CCP or employer insurance. Show me the money!
…Read more

