Archive for the ‘as3’ Category
Wednesday, January 27th, 2010

Last week I found myself needing to convert a colour image to black and white and here’s how I did it!
import flash.filters.ColorMatrixFilter;
import fl.motion.AdjustColor;
//==========================
var color : AdjustColor;
var colorMatrix : ColorMatrixFilter;
var matrix : Array;
var filterBW : Array;
color = new AdjustColor();
color.brightness = 20;
color.contrast = 20;
color.hue = 0;
color.saturation = -100;
matrix = color.CalculateFinalFlatArray();
colorMatrix = new ColorMatrixFilter(matrix);
filterBW = [colorMatrix];
Now we can set the .filters property of our image to be filterBW, and shazam you have a black and white image.
Tags:as3, flash, flex, help, tutorial
Posted in as3, help, tutorial | No Comments »
Tuesday, December 22nd, 2009

I have been thinking about building a visualiser since 2003 (when I saw one on www.2advanced.com) and have finally found the time to look into AS3′s computeSpectrum as well as Richard Lords’ FLiNT Particle System and came up with this example which uses Jamie T’s – The Man’s Machine (which you can buy here).
(more…)
Tags:as3, flash, flex, FLiNT, help, tutorial
Posted in as3, help, music, tutorial | 1 Comment »
Saturday, October 10th, 2009

Just recently I had some time and decided to take a look at the flash api for google maps. Initially I didn’t have a plan, I just wanted to start using the api, but once I realised how easy it was to get setup I thought I should try and do something a little bit more interesting, so I decided to see if I could track and tag myself across London.
(more…)
Tags:api, as3, flash, flex, lab
Posted in as3, labs, work | No Comments »
Wednesday, September 30th, 2009

www.fashionair.com is all about well… fashion, reading about it, talking about it, watching it,and buying it. The site has lots of dynamically driven, CMS managed flash pages with tons of lovely videos and imagery. It has a massive selection of products to browser through and buy which are linked to across the site from blogs, articles, and videos.
(more…)
Tags:as3, flash, flex
Posted in as3, work | No Comments »
Tuesday, September 29th, 2009

You’d think that there would be a way to clear BitmapData maybe something like BitmapData.clear(), but when is anything that simple. So far the best I’ve come up with is…
(more…)
Tags:as3, flash, flex, help, tutorial
Posted in as3, help, tutorial | 2 Comments »
Monday, September 7th, 2009

This is a little mashup experiment I’ve been working on recently which utilises the lastFM, amazon, and youtube API’s to create an interesting visual interface to display my recently played tracks scrobbled from my iPod.
(more…)
Tags:amazon, api, as3, flash, flex, lastFM, papervision, youtube
Posted in as3, labs, work | No Comments »
Friday, August 14th, 2009

The brief on this one was to build an iTunes-esque coverflow to showcase Miomni’s IPTV channels, each cover needed the ability to display images, videos, and some information about the channel.
(more…)
Tags:as3, flash, flex, FP-10 3D
Posted in as3, work | Comments Closed
Thursday, July 16th, 2009

When flash is embeded within a HTML page it doesn’t by default have focus, this means it won’t capture things such as keyboard interaction. However there is a very simple fix using swfObject to embed your flash movie and a simple bit of Javascript.
Add this javascript function to your header..
(more…)
Tags:as3, flash, flex, help, HTML, Javascript, tutorial
Posted in as3, help, tutorial | No Comments »
Wednesday, June 17th, 2009

Why is it when just when you think a project is almost there some kind of nasty bug rears its ugly head, thats what happenned to me today when I uploaded my swf to the test server for the first time and tested it in the browser.
(more…)
Tags:as3, flash, flex, help, tutorial
Posted in as3, help, tutorial | 3 Comments »
Wednesday, June 10th, 2009

Last week I ran into some trouble when trying to load images dynamically in flash, 99% of the time my images loaded in as they should but at what seemed like random intervals and image would suddenly fail to appear, this was only happening in Firefox or Safari, IE has never as far as I can tell failed to load an image when I’ve been using it to test this project. At first I thought it might be a problem with the platform the site was running on however after some testing I was able to rule this out so I turned back to my trusty friend Charles the Web Debugging Proxy for some help.
(more…)
Tags:as3, flash, flex, help, tutorial
Posted in as3, help, tutorial | No Comments »