An internal build error has occurred. See the error log for more information.

January 24th, 2012

ONE of the reasons this might happen is because of the following:

public static function compareStrings ( firstString:String, secondString:String ):String
{
	firstString:String = tidySpace( firstString );
	...
}

You see that firstString:String = etc there? That’s the fella. DON’T EVER strongly type your vars more than once, unless you wanna lose an hour of dev like I have this morning.

AIR Apps Need Planning

August 12th, 2010

[click the image to see a larger version]

This diagram outlines an XML load procedure. Complicated, no? That’s because it’s for an AIR app, and therefore has to cope with situations other Flash & Flex apps don’t. I’m showing it to make the case for planning AIR apps in advance as much as possible.

Read the rest of this entry »

Flex Carousel Component

January 16th, 2010

I recently made this Carousel component for Flex

Read the rest of this entry »

RobotSignals: Combining RobotLegs with Robert Penner’s Signals

December 20th, 2009

Robotlegs is an AS3 dependency injection micro-framework.

Signals is a new approach for AS3 events, inspired by C# events and signals/slots in Qt.

Put them together and you’ve got an elegant, simple & completely decoupled solution to the problem of Flex & AIR development.

I’ve thrown together a really quick example (which you can download below) based upon a couple of things I’ve seen recently; firstly Richard Lord’s framework comparison talk at FlashBrighton a couple of weeks ago, and secondly, Owen Bennett’s  blend of RobotLegs and Signals he showed me last week. Seeing what Owen had put together inspired me to have a go myself. I wondered whether it was possible to create a RobotLegs/Signals hybrid that was even more decoupled than the system Owen was working on. So I created a short (less then 100 lines) class called ‘SignalBox’, named after a similarly named class in Owen’s system.

Read the rest of this entry »

HowTo: Improve your workflow with Snippets, comments and ‘dormant’ variables

January 25th, 2009

I use FlexBuilder. I used to use FDT but the code-completion, hover-over links and - most importantly - ability to compile from MXML that FlexBuilder offers eventually tempted me away. Still, there’s one thing about FDT I miss: it wrote A LOT of code for me. Nothing complicated, stuff like getters & setters that are tedious and time consuming. It was great that FDT could take that off my hands.

These days, with FlexBuilder, I don’t have that any longer. Which isn’t great but I’ve managed to concoct a  workaround using ‘Snippets’, comments and ‘dormant’ variables, which has sped things up for me and which could do the same for you.

Let me explain…

Read the rest of this entry »

HowTo: Embed fonts in a FlexBuilder AS3 project

January 8th, 2009

A subject particularly far away from my heart; I have always loathed font embedding, because there are so many ways of doing it and they don’t always work and when they do it feels like some weird voodoo that could inexplicably disappear at any moment is part of it! Which is why I’m very grateful to have recently been shown a method of achieving this by Unwrong’s marvellous Flash Developer Jonathon Pace. Jon’s method is simple, relatively error-free and seems to work for all font types - the ones I’ve tried thus far, at least - which was always the biggest bugbear for me; it sometimes felt like you had to know a different embedding method for each different font type!

So, using Jon’s method what you have to do is:

  1. Create a fonts swc;
  2. Ensure your compiler includes every font in your swc; and
  3. That’s it! Use your embedded fonts

Read the rest of this entry »

Christmas eCard

December 20th, 2008

I made an eCard for my friends and clients yesterday. With the exception of those who actually make half-decent ones - like my old client TripleTruth - eCards are usually pretty lousy so i just wanted to mess about for a laugh really and make a really amateur effort.

You can find my bad eCard here. The misspelling in it was a genuine mistake that I thought I’d keep. I hope it makes you smile and I wish you a merry Christmas and a happy new year.

See you in 2009!

Tile Designer

December 17th, 2008

Over the summer of 2008 I decorated my bathroom. I knew from doing my kitchen the year before that the most painstaking and time-consuming part of the job would be tiling and I wondered if there was anyway it could be made less so?

I had just come back from BarCampBrighton, where I was inspired by Ollie Glass‘ workshop on writing genetic algorithms; something that turned out to be really simple. So I sat down, chucked some code together and produced this Tile Designer swf, built on a genetic algorithm:

We won at the DiMAs !!!

November 29th, 2008

On Thursday 27th of November - two days ago - a handful of other FlashBrighton members and I were at the DiMAs awards in Hove’s All Saints Church. In a previous blogpost I said, amongst other things, that FlashBrighton was a shoe-in for the “Strongest Community” award at the DiMAs. I really felt that it was a done-deal, not because of any weakness on the part of the opposition, but because of all the great things we’ve achieved.

And I was right, WE WON !!! It’s fantastic but I’m not going to say too much about it because Matt Pearson’s has already a great job of that here. Instead let me say this:

I was REALLY, REALLY pleased to see Matt Pearson pick the ‘Best Blog’ award for his zenbullets blog. I really admire good writing and zenbullets certainly has that. The delivery and content are excellent, and his documentation of the victimisation Sussex Police have only-just ceased to put him through is just captivating. For these reasons I also felt that Matt would be a shoe-in in his category, and was pleased to see that I was right again.

Obviously I had a hand in the FlashBrighton award but what might not be so obvious is that I also had a hand in a second award. Blast Theory were nominated in the “Digital Collaberation” category. Now, I thought that it was Blast Theory as a whole that was nominated but it turned out that it was specifically their ‘Rider Spoke’ project. In the words of Blast Theory, ‘Rider Spoke is a work for cyclists combining theatre with game play and state of the art technology’. Part of the work was a Flash front-end for a console cyclists had attached to the handlebars of their bikes (you can see some images of that in action here). Twas I wot made that Flash front-end.

And ‘Rider Spoke’ won too !!! So as Flash coder and copywriter, I came away from the night feeling like I had an important hand in not-one-but-two awards! I also came away from the night feeling quite drunk.

Finally, I would like to mention that Brightonian Flash agencies LittleLoud & Kerb, freelancer Sarah Bird and my former employer DigitalBrain were also nominated in other categories but sadly failed to pick up awards. FlashBrighton members were nominated in so many categories that it was inevitable that some of us weren’t going to get our just desserts. And anyway, LittleLoud are up for a BAFTA this weekend, so things aren’t really too bad for them. Maybe next year guys?

Flash & Flex Freelancers in Brighton

November 21st, 2008

Spurred on by this page on Kristen Akermans’s site and this blog post on Matt Pearson’s blog - which both list freelancers available in Brighton and which both link kindly to me - I decided I should return the favour. So what follows is a list of those people I recommend if you’re looking for a freelancer. Obviously I top my own list - I’ll be wanting the work first, thank you :) - but if I’m busy I thorougly recommend the other guys and gals (listed alphabetically) here:

Designers

Charis Mystakidou: wiredportfolio.com
Kristen Akerman: sting.co.uk
Luke Hornsby: flamingpixels.co.uk
Tim Frost: bullandgate.com

Developers

Richard Willis: richtextformat.co.uk
Matt Pearson: actionscripter.co.uk
Matt Sayers: soplausable.com
Neil Manuell: revisual.co.uk
Nikos Chagialas: devgallery.com
Owen Bennett: steamboy.co.uk