Web and Multimedia Development
Flash, Flex, AIR, PaperVision
ActionScript 3.0 Specialist
 


iPhone Style Password Fields in Flex

February 16th, 2010

You may be sick of hearing it, but Apple, and in particular their iPhone/Pod/Pad, are setting the standard for instinctive and usable interaction. And I’m sure the iPhone will influence the next generation of Flex components, but until then I’ve rolled one of my own.

My client was reporting the primary school children their app was aimed at were having trouble entering their (given) passwords, the logs showing some needing 20 or 30 tries. The iPhone way of entering passwords, showing the last letter typed, solves the issue of imprecise keying on a touchscreen. But it also serves as an accessible alternative for any user group who may need it.

I was going to post this as a Flash/Flex component, but it is so simple I may as well just post the code, then it is easily translatable into JavaScript, PHP, Processing or whatever is your flavour.

private var _passwordEntered:String = "";   
// this will store the password as it is typed

passwordTI.addEventListener(Event.CHANGE, passwordEntry);
// the TextInput component - make sure "displayAsPassword" is turned OFF

private function passwordEntry(e:Event):void {
 
    // update _passwordEntered with whatever has been typed
    var newText:String = passwordTI.text;
    if (newText.length < _passwordEntered.length) {
        _passwordEntered = _passwordEntered.substr(0, newText.length);
    } else if (newText.length > _passwordEntered.length) {
        var diff:int = newText.length - _passwordEntered.length;
        _passwordEntered += newText.substr(newText.length - diff, diff);
    }
      
    // hide the text in the field, apart from the last char
    passwordTI.text = "";
    for (var x:int = 0; x < _passwordEntered.length-1; x++) {  
        passwordTI.text += "•";
    }
    passwordTI.text += _passwordEntered.charAt(_passwordEntered.length-1);

}


Flash On The Beach 2009 (video)

December 19th, 2009

There is now video evidence of my brief appearance at Flash On The Beach earlier this year, currently residing on the front page of the FOTB site. I hate seeing myself on film, but fortunately the majority of the video consists of the artwork I showed (from my “Abandoned Art” Generative Art project), which is perhaps the only reason why, three months later, I can now safely watch this without cringing.



PlugIn Media Bring Home a Second Brighton Interactive BAFTA

November 29th, 2009

Let’s be honest, Interactive Awards don’t mean shit. Unless they’re awards people have heard of, real people, not just people who are in the running for them. But the BAFTA in the UK, like the Oscar in the US, is pretty much universal currency, bring one of those home and there’s no explanation needed.

In 2003 BAFTA introduced a host of “Interactive BAFTAs”, a project I worked on was nominated for one in 2004, but they were quietly dropped in 2005 for reasons unknown. There still exist a few hotly contested Interactive awards buried within other events though, such as the Interactive category at the Children’s BAFTAs, which was last year won by my old company Littleloud. Tonight was a second Brighton triumph as Seb’s PlugIn Media posse landed the very same award for their excellent Big And Small site.

PlugIn walked it home really. I’ve never seen such a level of detail in a childrens game, it was a no brainer. If my four year old had been judging it he’d have gone for the same.

I had absolutely no part in this particular scoop but still I am feeling the joy, if only in the reflected glow upon Brighton’s Flash community. Happy days.



Flash, Flex and Processing Work 2009

November 19th, 2009

It would seem the weight of guilt doesn’t get lighter by sharing, so this week I took two days out of my schedule to:

  1. update the portfolio
  2. implement the new site skin, designed by the very talented Charis (of WiredPortfolio) back in January.

Amongst the projects added from the last year are:

There’s also been a lot of extra-curricular (i.e. non-Flash) work this year, mostly Processing/Generative Art related. I’ve written a little about the “creative coding” book I’m currently writing (to be published in Summer 2010), but for fuller details of my Generative Art, my writing, and other more experimental work, you should visit my (award winning) personal blog here. Which is where, amongst other things, you can see a video of my work projected onto a Brighton church.



The Neglectful Freelancer

October 26th, 2009

They say it is a good sign if you visit a freelancer’s website and they haven’t updated it in a long time, because it can be taken as an indication they are a) very busy, and b) so in demand they don’t feel the need to sell themselves too hard. Both these are probably true in my case, but still I carry this huge nagging guilt about my poor neglected portfolio, which now has approx 10-15 projects waiting to be added.

It clearly hasn’t effected the work flow anyway (which kinda makes me wonder if maybe I should just get rid of the portfolio entirely), but recently I have had some rather awkward questions from clients asking “so, what kind of work do you usually do”. If you looked at my portfolio, frozen in time in early 2008, you’d think my focus was eLearning. A year earlier it would have been games. But the correct answer is neither of these.

So, for the record, the kind of work I usually take on is probably best summed up as: “the meatier end of Flash”. Which these days usually means Flex, but not always. On anything else – industry sector, technologies, job size – I am usually without prejudice. Although, if you are an arms dealer wanting a Flash game about shooting Iraqis, don’t even waste an email.

Anyway, I’m not trying to hawk my wares here, just trying to preempt the questions. I’m pretty much booked up until xmas right now anyway, mostly due to my Generative Art Book. But that, is another area of work entirely …



Speaking At Flash On The Beach 2009

August 3rd, 2009

Well, when I say “speaking”, I mean I’ve got three minutes! Which should be just enough time to get on stage, get my laptop hooked up to the projector, make sure it’s got sound, introduce myself, apologise for having no time left and get off.

I’ve been selected to present one of the Flash On The Beach Elevator Pitches, twenty micro-sessions showcasing “hot new talent”. On first hearing of the idea I thought it would be impossible to fit anything meaningful into so short a time – when I spoke at Flash Brighton earlier in the year it ran to more like three hours. But, as Seb reminded me, this is more of a teaser trailer rather than a full feature, so I’ve now got something in mind (something new and previously unseen) which I hope will do the trick. I don’t think there’ll be time for questions though.

To get an idea of what you might expect, see my recent postings over at zenbullets.com. And if you’re at the conference please come and see me. You will be allowed 3.5 seconds in which to applaud.

fotb09_badge_468_60



Code Poetry: Blake’s Jerusalem

July 15th, 2009

Amongst the forthcoming Flash Brighton sessions in the calendar we have a talk on William Blake by Rich. This news prompted the following from Neil:

var bow = bringMe("burning gold");
var arrows = bringMe("desire");
var shield= bringMe();
var clouds = Clouds.unfold();
var chariot= bringMe("fire");

do {
   mentalFight.cease = false
   sword.sleep = false
} while (! England.pleasantpastures.isJerusalemBuild())

Note this code will only run in green and pleasant lands.



Flash/Flex Twitter Mashups

May 19th, 2009

twitter-bird

I’ve written a new tutorial: ActionScript and the Twitter API, Simplified



Farewell Flex Builder, Hello Flash Builder

May 16th, 2009

flash builder

The next version of Flex Builder (V4, code named Gumbo) has been renamed Flash Builder.

Makes sense. Flex is only the framework, Flash is the platform we are building for, whether we are using Flash or Flex. I was starting to feel a little odd referring to myself as one of Brighton’s Flash Developers when I hardly ever open Flash. Technically, seeing how 90% of my work over the last two years has been built using Flex Builder, I am probably better described as a Flex Developer these days. At least I don’t need to worry about such rubbish now.

Flash Builder (aka Flex 4) is expected to have a Beta release in June, with final release expected in the last quarter of 2009.

If you have any questions on the rebrand, there is an FAQ here.



The Differences between ActionScript 2 and ActionScript 3
(according to Flash Brighton)

May 16th, 2009

as3.0 is like a strict german mistress. Very harsh but gets good results.
as2.0 is your stoner friend from college.

as1.0 is for script-kiddies, designers and other non-technical people
as2.0 is for girls
as3.0 is for real men

as3.0 is carefully crafted formulaic pop – predictable, slick, reliable, dull
as2.0 is glitchy electronica – some semblance of form, but playful with it
as1.0 is a child bashing saucepans – imprecise, messy, but lots of fun

as3.0 is a Japanese Chef’s knife. Finely crafted but requires care and technique in its use.
as2.0 is a Machete. Great for hacking things, but useless for anything requiring fine detail or control.
as1.0 is a plastic spoon.

With thanks to Owen and Jim.



Flash Player Penetration – March 2009

April 29th, 2009

Adobe have just released their latest Flash Player penetration stats, which suggest that Version 10 now has an approximate 75% penetration.

  Flash Player 7 Flash Player 8 Flash Player 9 Flash Player 10
Mature Markets 99.3% 99.1% 98.9% 74.2%
US/Canada 99.2% 99.0% 98.8% 74.5%
Europe 99.1% 98.9% 98.6% 75.3%
Japan 99.8% 99.5% 99.3% 72.0%

Previously Adobe’s own stats tended to be taken with at least a soupcon of salt, as they were based on visitors to their own site (who would obviously be more inclined to be Flash users), but in now employing third party market research for these statistics we might take them a little more seriously.

For an alternative view RIAstats offers some visual data too, which also puts FP10 around the three-quarters mark. Interestingly, they also give stats for Silverlight, Microsoft’s much mocked “Flash Killer“, which is now showing an actually rather impressive 25% uptake. I have slightly warmed to Silverlight in recent months, mostly thanks to conversations with Ed at Unwrong. It may yet be one to watch.



Wanted: Flex Designers

January 14th, 2009

Flex Warholised

Flex has been around a while now and is ramping up in terms of popularity. I had a handful of Flex projects last year, all of which were a positive experience, and I have more lined up for this year. But while Flex has been embraced quite happily by the Coders (mainly because it is the first decent ActionScript IDE) I’m not convinced it has penetrated our symbiotic co-species; the Designers.

For all Adobe’s claims about improving workflow with the use of Flex Builder, which it certainly has for writing code, I’m not sure the way of creating components and skins for Flex (which cannot be done easily without one of Adobe’s other products) is quite as instinctive. The reason I suspect this is because for every Flex project I have worked on we have had real difficulty finding a suitably skilled Designer.

One of the stigmas associated with Flex is that every Flex site you see on the web, looks like a Flex site. So many times you see the default loader, default buttons and even the default grey colour scheme, which suggests to me the Designers are nowhere to be seen on these projects.

So if you are a Flex Designer reading this, or a Flash Designer who isn’t scared off by Flex, please get in touch. Especially if you are in the Brighton or Birmingham area and are affordable. I have projects you can be helping me with right now.

And Adobe, listen up; Flex isn’t going to change the world until we can get the Designers on board. So perhaps you might want to make it a little easier for them to work with it.



 
actionscripter.co.uk.com actionscripter.co.uk.com actionscripter.co.uk.com