Hi everyone,

MixMatchMusic released a URL shortening service today that is oriented toward Music related content, called tra.kz. I decided to whip up a quick actionscript library for it, which you can all use for fun.

Download it here: Trakz.zip

Here is how you might use it:

import mx.controls.Alert;
import kz.tra.Shorten;
import kz.tra.events.TrakzEvent;

private function callTrakz():void
{
    var trakz:Shorten = new Shorten("myAPIKey");
    trakz.addEventListener("urlShortened", uS);
    trakz.shortenURL("http://adobe.com/go/foobar");
}

private function uS(event:TrakzEvent):void
{
    mx.controls.Alert.show(event.shortURL + " Failure: " + event.failed.toString());
}
]]>

Ping me if you need an API key…