Been a while since i have shared any coding tips, but here is one for those Actionscript 3 Coders out there. Its a helper function that splits a URL up into its different parts using RegExp.

public static function dissectURL(url:String) : Object
var keys : Array = ["source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "query", "anchor"];
var hostExtractPattern:RegExp = /^(?:([^:/?#]+):)?(?://((?:(([^:@]*):?([^:@]*))?@)?([^:/?#]*)(?::(d*))?))?((((?:[^?#/]*/)*)([^?#]*))(?:?([^#]*))?(?:#(.*))?)/;
var o : Object = hostExtractPattern.exec(url);
var r : Object = new Object();
for (var i:int = 0; i < keys.length; i++) { r[keys[i]] = o[i];    }
return r;

An example of its use would be:

var protocol : String = dissectURL(“http://www.mikecann.co.uk/?p=294″).protocol;

It would trace “http”.


Icy Slicy Like Game

Just came accross this rather interesting variation on my Icy Slicy game. Its called Ice Breaker. Its not exactly a clone, but the tech is very simmilar to Icy Slicy.

Back from Berlin

Well its now 2009 and im back at work, but as sad as it sounds im enjoying being back desprite the backlog of support tickets here at GameJacket :P

New years for me was spent with my little lady Toni in Berlin with her friends. We spent NYE in a club called Matrix with some of her friends. As you can see from some of the pictures i have taken they do things a little differently in Germany for NYE (donuts at midnight ?!).

Anyways, I totally enjoyed myself and would love to go back again but now its back to GameJacket and my other Games. On that subject I have been resting over Christmas after the stress of releasing Flashteroids, and have had time to think about what my next game will be. My question is has anyone seen a good remake of Minesweeper in Flash?

Some highlights from Berlin: