Friday, March 5th, 2010
Had this little idea a while back, thought I would spend an hour tonight and bash it out.
I love the Trance Around The World radio show by Above and Beyond, downloading it for listening later is very annoying however and involves some fiddling with browser source and other things, so to make life easier I built this little tool. What it does is grab the HTML from the above and beyond page then parse it for the MP3 file, then it uses the FileReference class in flash to download it to your HD.
Anyways, enough jibber jabber. Source is enabled:
Please upgrade your Flash Player This is the content that would be shown if the user does not have Flash Player 9.0.115 or higher installed.
Hope you enjoy!
Tags: Actionscript, Audio, Download, Flash, Flex, MP3, Music, Source, Trance
Posted in Actionscript, Flex, MXML, Personal Projects, Programming | No Comments »
Wednesday, February 10th, 2010
Well it thought it was about time I did some posting about my personal project im working on at the moment as I havent spoken about my coding for a while.
For a while now (alot longer than I had hoped for) I have been working on a project that falls outside the realms of my usual kind of games-related projects. Im not ready do describe exactly what it is yet but im excited about it.
For months I have been struggling with the techinal challenges the project has entailed and I have dabbled with many new and highly diverse technologies including JavaFX (Java), Qt (C++) and Mono (C#). I have been looking for a cross-platform technology that will get the job done that I need and doing it in an elegant manner.
I thought I had found it with a combination of JavaFX and straight Java using the PureMVC framework. I however was plagued with problems throughout with Bonjour, jGroups, JmDNS, JNI and JNA.
So after months of work, hardship and struggles I read a very interesting article on the up-and-coming Adobe AIR 2.0 that was opened for beta in December. With 2.0 Adobe are bringing NativeProcess to Air. What this means is that you can you can execute native code (.dlls, .so, .jar etc) from Air. To me this was bloody brilliant as I had been playing with Air reccently and my day-job heavily involves Flex and I simply love the power and beauty of Flex.
So what this meant to me was that I could write the bulk of my project including its interface in my much preferred Adobe Flex (Air) and then use Native Process to communicate with a small kernel of Java that would do all the dirty work that Air itself cant do.
So after a little playing with Flerry for Air->Java bridge I started to think about the structure of the code and the framework I would use. For my initial few runs at this project I had been using the Java version of PureMVC. I really like some aspects of PureMVC but I think its can be so overly cumbersome in some circumstances (ill write another post on this in the future I think). So instead I looked at the alternatives.
I have been using Mate alot recently at work and on my own mini-project the Audio Book Organiser. However as this project is partly for my own learning and personal growth I decided to look at what else there was out there. From the videos by Jessie Warden I had heard about Robot Legs. Apparently this framework has been around for a while, but it was the first I had heard of it. Taking at look at it I immediately became very excited as it looks like it offers all the things that make PureMVC great but without the extra coding-baggage that goes with it.
To add to my interest it appears another very interesting, very new action-script technology has been introduced into Robot Legs called Signals by Robert Penner. Signals is an alternative to the standard events dispatching method found throughout flash (more on this in another post).
So why have I called this post “the bleeding edge?”. Well Adobe Air 2.0 is still in beta and has only been for a month or so. Its so new that some parts still havent been documented atall and the only way to find out how they work is to post a msg to the devs on the forums. Signals is also new and its integration into Robot Legs is very new indeed (last coupple of weeks). So at the moment I feel as if im at the forefront of some very new, very exciting technology, a stark contrast to my fiddlings with the ancient Java.
I realise this post is very text and tech-heavy but I needed to post about it before I forgot all the pain I have gone through with this project to get where I am at the moment. Future posts ill be delving a little deeper into some of my experiments with these new technologies ;)
Tags: AIR, Flex, Inputtie, Java FX, Mate, Programming, Projects, Robot Legs, Signals
Posted in AIR, Actionscript, C#, C++, Flex, Java, JavaFX, Personal Projects, Programming | No Comments »
Tuesday, February 2nd, 2010

Thought id mention these videos as I have been watching them and really like the content. They are a series of video blog posts by one of the ‘celebrities’ of the Flash and Flex world, in which he talks about lots of stuff related to whats going on in the industry and the various frameworks he uses or recommends (or doesnt). He also has a few things to say about beer, which is a bonus!
Anyways theres three of them so far, and can be watched over on his blog:
1 vs Many, Mediator vs Presenter, 30 mins – JXLTV – Episode #1
Conferences, Why Frameworks, Cairngorm 3 – JXLTV – Episode #2
Apple’s iPad, HTML5 Video, Gaia Flash Framework – JXLTV – Episode #3
Tags: Beer, Blog, Flash, Flex, Framework, Video
Posted in Fun & Videos | No Comments »
Tuesday, January 12th, 2010

Well I was just doing some audio book organising and realised that it would be great if I could drag and drop a folder straight from my AIR into iTunes ready for upload to my iPhone.
Anyways after a little searching through the docs I came up with this little ditty:
var cp : Clipboard = new Clipboard();
cp.setData(ClipboardFormats.FILE_LIST_FORMAT, [new File(book.url)], false);
NativeDragManager.doDrag(null,cp);
Which gets fired by my DataGrid in the view:
<mx:DataGrid width="100%" height="100%" dataProvider="{books}" editable="true"
itemEditEnd="{dispatchEvent(new BooksEvent(BooksEvent.PROPERTY_CHANGED));}"
dragEnabled="true"
dragStart="{dispatchEvent(new BooksEvent(BooksEvent.BOOK_BEGIN_DRAG, AudioBookModel(event.currentTarget.selectedItem)))}">
Its pretty cool.
Anyways, the latest version and the source is below:
Tags: Actionscript, Audiobook, Drag-Drop, Flex, iTunes, Programming, Projects, Utility
Posted in Actionscript, Personal Projects, Programming | 1 Comment »
Saturday, January 9th, 2010

Just did a quick update to the audio book organiser. Added the ability to move the storage database file. This was so that I can put my storage file on Dropbox and it will then be backedup and synced between machines.
New version and sources:
Please upgrade your Flash Player This is the content that would be shown if the user does not have Flash Player 9.0.115 or higher installed.
Source: http://www.mikecann.co.uk/flash/AudioBookOrganiser/AudioBookOrganiser_v120_source.zip
Tags: Actionscript, Audiobook, Flash, Flex, Framework, Mate, Programming, Projects, Utility
Posted in AIR, Actionscript, Flex, Personal Projects, Programming | No Comments »