It’s Movember again!

So it’s Movember again, the time of year when men all over the world grow ridiculous moustaches to raise money and awareness for men’s health, specifically prostate cancer and other cancers that affect men.

I’m really happy to work at an agency that supports Movember and lets us do work to promote the cause.
Last year, we made a site called Mo’s Wanted – a 3D flash based, police line-up showing all our team members, their donations and most importanlty, the progress of their mustaches!

It was a great project to work on and I wrote a blog post about it here. We had a nice surprise this week too, as due to the strange cycles of award ceremonies, it has just picked up a couple of Cream Yorkshire Awards – Best Digital work and the Chairman’s Award.

The Cream Yorkshire Awards are all about celebrating and rewarding creativity in Yorkshire.

Open exclusively to those based in Yorkshire and The Humber, these awards provide the opportunity for those in this region to compete with others in their area.

Open to those working in the advertising, design and digital sector as well as clients and in-house teams.

Our office is doing another excting project for Movember this year – The Gallery of Mo!

As well as the obvious, raising money and awareness for Movember and highlighting all the fab work the charity does, we want to give something back to all the loyal and generous donators.

SO, this year for every £1 you donate our skilled team of designers will spend 1 minute creating a portrait of you based on the image you supply, with one minor addition – a Mo of our choice.

So get on over to the page, make a donation and you can be supporting a great cause and also getting a really cool portrait. Here’s a few of my favourites so far –

Flash Midi Server – I/O version. Work in progress

A couple of days ago, a guy called Alfonso posted a comment on the Flash Midi Server page asking if the app could pass data from a midi controller to flash. FMS had always been designed to send out data – as I was originally interested in using Flash as the driving force for generative audio apps. But adding Midi input to the setup should open some more interesting possibilities.
I spent a couple of hours setting up an Input version last night – and got a demo version working.

In the image, the controller positions on the Novation Nocturn are mirrored in the swf.

I need to add the new input functions to the current FMS server app – but expect an Input / Output Flash Midi Server to come in the next few days.

Musical Scales as midi note numbers.

For a couple of audio projects, I needed some nice musical scales, in midi note format (0-127). I couldn’t find a good list online, so had to knock together a quick script to trace some out. Here’s some that I’m using in a current project, and also the AS source to find any other ones you may want.

Using this PDF as a guide – – enter the scale name, and the notes which are active in that scale. For example, the first scale in the image below, the Adonai Malakh (Israel), we would set the code as –

//Enter scale name - 
var scaleName:String="AdonaiMalakh(Israel)";
//Enter the notes in each octave to use - see -
var acceptedArray:Array = [0,1,2,3,5,7,9,10];

Which would give us the output –

var AdonaiMalakh(Israel):Array =[48,49,50,51,53,55,57,58,60,61,62,63,65,67,69,70,72,73,74,75,77,79,81,82,84,85,86,87,89,91,93,94];

//Enter scale name - 
var scaleName:String="Zirafkend";
//Enter the notes in each octave to use - see -
var acceptedArray:Array = [0,2,3,5,7,8,9,11];

var octaveStep:int=0;
var finalArray:Array = [];

//You can limit the scales to any length - it will retrieve the middle section of the scale.
var limitArray:int = 32;

for(var i:int=0;i<12;i++){
	for(var j:int=0;j

And here's some scales. These are chopped to the middle 32 notes in each sequence.

var BiYu:Array =[24,27,31,34,36,39,43,46,48,51,55,58,60,63,67,70,72,75,79,82,84,87,91,94,96,99,103,106,108,111,115,118];
var Blues:Array =[41,42,43,46,48,51,53,54,55,58,60,63,65,66,67,70,72,75,77,78,79,82,84,87,89,90,91,94,96,99,101,102];
var BluesDiminished:Array =[48,49,51,52,54,55,56,58,60,61,63,64,66,67,68,70,72,73,75,76,78,79,80,82,84,85,87,88,90,91,92,94];
var Dorian:Array =[25,27,30,32,34,37,39,42,44,46,49,51,54,56,58,61,63,66,68,70,73,75,78,80,82,85,87,90,92,94,97,99];
var FullMinor:Array =[51,53,55,56,57,58,59,60,62,63,65,67,68,69,70,71,72,74,75,77,79,80,81,82,83,84,86,87,89,91,92,93];
var HarmonicMajor:Array =[44,47,48,50,52,53,55,56,59,60,62,64,65,67,68,71,72,74,76,77,79,80,83,84,86,88,89,91,92,95,96,98];
var Hawaiian:Array =[39,43,45,47,48,50,51,55,57,59,60,62,63,67,69,71,72,74,75,79,81,83,84,86,87,91,93,95,96,98,99,103];
var IonianSharp5:Array =[45,47,48,50,52,53,56,57,59,60,62,64,65,68,69,71,72,74,76,77,80,81,83,84,86,88,89,92,93,95,96,98];
var JazzMinor:Array =[45,47,48,50,51,53,55,57,59,60,62,63,65,67,69,71,72,74,75,77,79,81,83,84,86,87,89,91,93,95,96,98];
var Lydian:Array =[45,47,48,50,52,54,55,57,59,60,62,64,66,67,69,71,72,74,76,78,79,81,83,84,86,88,90,91,93,95,96,98];
var Major:Array =[43,45,48,50,51,52,54,55,57,60,62,63,64,66,67,69,72,74,75,76,78,79,81,84,86,87,88,90,91,93,96,98];
var Mixolydian:Array =[45,46,48,50,52,53,55,57,58,60,62,64,65,67,69,70,72,74,76,77,79,81,82,84,86,88,89,91,93,94,96,98];
var Oriental:Array =[45,46,48,49,52,53,54,57,58,60,61,64,65,66,69,70,72,73,76,77,78,81,82,84,85,88,89,90,93,94,96,97];
var SuperLocrian:Array =[44,46,48,49,51,52,54,56,58,60,61,63,64,66,68,70,72,73,75,76,78,80,82,84,85,87,88,90,92,94,96,97];
var VerdiEnigmaticAscending:Array =[46,47,48,49,52,54,56,58,59,60,61,64,66,68,70,71,72,73,76,78,80,82,83,84,85,88,90,92,94,95,96,97];
var Zirafkend:Array =[48,50,51,53,55,56,57,59,60,62,63,65,67,68,69,71,72,74,75,77,79,80,81,83,84,86,87,89,91,92,93,95];

I've also put the code up on Wonderfl - so you can use it straight from your browser.

UK Postcode Validation in AS3

Let me file this post under boring but useful. Recently I worked on a project where I had to validate UK postcodes in flash. The method I used in the end was a regular expression I found, with a bit of formatting logic added. This should work for all UK postcodes.

var validPostcode:String   =  "LS12ED";
var validPostcode2:String   = "LS1 2ED";
var invalidPostcode:String =  "NOTAPOSTCODE";


function validateUkPostcode(str:String):Boolean {
	if(str.indexOf(" ")==-1){
		trace("Adding postcode space");
		var l:int = str.length;
		str=str.substr(0,l-3)+" "+str.substr(l-3,l);

	var pattern:RegExp =  /[A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][ABD-HJLNP-UW-Z]{2}/i

	var result:Object = pattern.exec(str);
	if(result == null) {
		return false;
	} else {
		return true;

Mos Wanted


First – the obligatory “I’ve not posted much for ages” bit. I’ve been working away on lots of interesting projects, including a couple of E-Learning applications, some games, a few more music experiments, more arduino tests and I’m starting to get underway on some iPhone and Android apps too – both native and Air based! So hopefully I’ll have some more updates in the near future. But today I want to talk about our fancy new charity fund raising site – Mos Wanted.

During November I will be growing a moustache to help spread awareness of Prostate Cancer and raise some cash for charity.

Movember challenges men to change their appearance and the face of men’s health by growing a moustache. The rules are simple, start Movember 1st clean shaven and then grow a moustache for the entire month. The moustache becomes the ribbon for men’s health, the means by which awareness and funds are raised for cancers that affect men. Much like the commitment to run or walk for charity, the men of Movember commit to growing a moustache for 30 days.

You can read more about about Movember at their site –

If you have a bit of spare change you wouldn’t mind donating to this great cause, then here’s a link to my sponsorship form –, where you’ll get to see me sporting a huge mustache, as well as my current progress.

You can also check out the site I’ve made with some guys from work documenting our Mo-Growing progress –

Mos Wanted Line Up

Case file

Or you can use the photobooth site we made –
Mos Wanted Photobooth

Which lets you test drive mustaches – either from saved photos –

Lawrie Mo-laroid

Or from your webcam –

I worked with some of the great designers in my office, to make this site promoting our fund-raising efforts. All the work was done in our downtime, when no client work was on and over a few late nights. I’m pretty proud of the results, and I’ll try to post a code round up, some of the lessons learned and maybe even some code snippets when I get a chance.

Also – The site is today’s site of the day on DesignLicks and is in the running for an FWA – so please head over to the FWA site and vote for it!

Cheers guys.
With your help we might reach out £3000 target!