It seems that if you want to publish content for Flash Player 10, you must first do away with all those silly, old-fashioned preconceptions about publishing being something that happens within the Flash IDE. I managed to avoid these problems when Flash Player 9 first appeared by just not doing any of the new stuff till the IDE was available. Well that’s not happening this time. Change has, after all, proven itself to be A Good Thing of late, what with AS3 and all, so here we go: time to relegate FLAs to the status of content containers and jump right in.

Having followed Lee Brimelow’s great intro to publishing for FP10, I was ready to publish via the terminal and view in Safari. Which was OK – if a little long winded – until I needed to trace stuff out. Googling yielded Arthropod, written in AIR and dead easy to write to from AS. Seems there’s no way to extend the trace() function, so this is my best bet. There’s the new setup above: Safari, with Terminal below and Arthropod on the right, TextMate living in another Space just below this one. So the process is just hit up and return in Terminal, then refresh the browser. Maybe I can get all this stuff going with Automator and a TextMate shortcut at some point. That’d be slick.
And it’s surprisingly good. For one thing, error messages seem much clearer in Terminal. It (usually) shows me exactly where the errors are, instead of making me guess with line numbers only. And the traces in Arthropod are smaller and clearer and can even be coloured if you fancy it. Here are some now:

…and as you can see, my new PrintCanvas class has made an A2 bitmap at 150dpi (actually it’s made two, one of which holds the perlin noise for directional bias in my generative painting stuff), which you can see in Safari above, with a red rectangle in it as a test. PrintCanvas can natively produce print sizes from A8 to A0 at present, plus Letter, Legal and Tabloid. I’ll add more sizes as they occur to me, but the important thing is that all this works at any dpi you choose, the only limitation being memory, which Flash’s BitmapData eats like you wouldn’t believe. It also handles saving the canvas directly to the local HD, which is why I needed to use FP10 in the first place for the new FileReference class updates. I’ll upload PrintCanvas with a full explanation and source very soon.

And yes, that’s Zippy and Michael Caine in the corner. What of it? I’ve got another drive called Reggie Perrin, so there.
August 17th, 2008 by Ad.
It's all about the experiments / r 'n' d, flash | 1 Comment »