actionscripter.co.uk Web and Multimedia Development
Flash, Flex, AIR, PaperVision
ActionScript 3.0 Specialist.

    

blog  portfolio  about
 


Monster Burn

April 24th, 2008

A message to clients with big ideas (and big money) - this is what we can do with Flash these days:

Monster Burnout

(c/o the mighty mrdoob)



Adobe AIR: an Apology

April 18th, 2008

The portfolio has just received a long overdue update, with some recent projects added to it, one of which being (slightly prematurely) the CD-Rom I am currently finishing off for Natural England, which I put together using Flex3 and AIR. I mention this because in the process of doing this project I have come to realise that I now owe Adobe a small apology.

A year ago O’Reilly books generously sent me a review copy of their Apollo For Adobe Flex Developers Pocket Guide. Apollo, or AIR as it has since been re-christened, was only at alpha stage when the book was released, and was full of bugs. I had spent a lot of time hacking away at both that and the documentation-less Flash 9 Alpha that had been released not long before. With AIR, even with the help from some of the development team, I couldn’t get even the most basic of applications to run. Because of my frustration (and because I thought I was oh-so big and clever) I wrote a deeply sarcastic review of the book for Blogcritics.

So this is my apology. I made my peace with Flash 9 and ActionScript 3.0 some time ago, and now, since AIR finally got it’s first 1.0 official release last month, I have had a complete u-turn in my opinion of that too. AIR is an utter delight to work with. And with Flex reaching version 3 to coincide with the release, they go together like Peters And Lee. Harmonious.



Adventures In PaperVision 3D

March 16th, 2008

I’m sure this isn’t the first PaperVision game, but I might make claim on it being the simplest. But then I only really had a day free to do this, which doesn’t allow the time for any sexy 3D modelling or texturing. Otherwise, you’d be looking at day-glo Tron Light Cycles racing around the grid below, rather than blue blobs. The keys are A/D or Left/Right arrows, and the idea is to collect the green things. The rest you can work out for yourself. Fullscreen version here.

What you’re looking at is PaperVision 3D. Not the silly snake game, but the Flash 3D engine rendering all those polygons. PV3D is probably the greatest Flash Open Source success story to date. At my local nerd club, a recurring topic of conversation is the “Open Source question” - i.e. should I open source my code or not, and what exactly do I gain by giving away my work for nothing? The creators of PaperVision, Carlos Ulloa, John Grden and the rest of the crew, answer this question. Rather than being the authors of a great 3D engine no-one knows about, by setting their code free they have become the leading experts in a 3D engine that EVERYONE uses.

At November’s FOTB conference PV3D was on every developer’s lips, within six months even clients are asking for PaperVision. By giving away their work, the creators of PV3D have made themselves coding mega-stars. This is how Open Sourcing works, the trade is in kudos, not commodities. The Open Source movement is the economic paradigm shift of the 20th Century, it happened in software five years ago, last year it made it’s mark on music, this year it will be publishing. The year after that … who knows. As the Chili Peppers advised, give it away, give it away, give it away now



Cracked, True Isometric 3D in ActionScript 3

February 23rd, 2008

It’s been six months at least since I’ve had the spare time for any ‘leisure’ coding but I finally found a few hours to get back into my Flash isometric 3D engine this week. And I’m really chuffed with what I’ve achieved.

You can move the ball with keys QAOP (once you’ve clicked on the movie) but the really interesting bit is the sliders. Thanks to AS3’s speed, I can now redraw the isometric space at runtime, so it is a “true” 3D engine.

I reckon MC Escher would have appreciated it.



Reading the querystring from Flash

February 19th, 2008

Very easy when you know how.

The Javascript (embedded in the html of the page holding the swf) -

function getQuery() {
    retstr = “”;
    fullURL = parent.document.URL;
    if (fullURL.indexOf(’?') > 0) {
        retstr = fullURL.substring(fullURL.indexOf(’?')+1, fullURL.length);
        retstr = unescape(retstr);
    }
    return (retstr);
}

The Actionscript -

import flash.external.ExternalInterface;

var query:String;
if (ExternalInterface.available) {
    query = String(ExternalInterface.call(”getQuery”));
}

if ((query) and (query != “null”)) { query = unescape(query);}



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