020 7920 7120 | public@publicreative.com

March 23rd, 2009

AMF command line utility

We do a lot of projects with AMF at Public, and historically we’ve used amfphp on our back end. On a current project however we are using Zend framework. The Zend_AMF module is the successor of the original amfphp project, but it is missing one really useful thing – it doesn’t have a service browser like amfphp does. I appreciate that there is fairly good reason for this, but it is a super handy tool we’ve come quite used to having available.

So what’s the problem?

If your PHP developers  have to start work before your Flash developers, you may find yourself with a back end, but no front end, so how do you test everything works? Moreover, how do you develop the back end at all if you can’t send and receive requests from your AMF gateway?

I wrote a simple command line tool for testing AMF calls, so I thought I’d share it with you here:
Download the amf command line program, requires PHP 5.2 with the json extension enabled.

It’s a fairly crude tool, and cannot support class mapping, but it’s currently helping us out very nicely. If you like it, or would like to see any improvements, please post a comment.

Keep reading…

March 2nd, 2009

PHP UK 2009 conference

Public were at the PHP UK 2009 conference on Friday.

There’s been a lot of buzz in recent years over other Linux-based web development platforms like Ruby and Python, but we’ve stuck with our expertise and believe that PHP’s future is as bright as ever. I for one was looking forward to this conference as confirmation of this, and particularly eager to hear all about PHP 6. Unfortunately this is not quite what we got, but it was a good day on the whole, and always great to meet developers from other backgrounds and sectors outside the creative industries.

Here’s a quick breakdown of some of the talks.

Keep reading…

January 30th, 2009

Typography in the times of communism

Some beautiful 3d typography from Budapest – and conveniently letterpress has just been described as a current design trend…

typo

January 23rd, 2009

3dsMax Texture Baking and Papervision

3d is really exciting us at the moment. Papervision is great but so far we’ve only used primitive shapes within Papervision to do all our work. Chris, our newest arrival in the Public development pit has been amazing us with his 3dsMax skills and of course prompted us to get up with the play and start exporting from Max into flash.

It’s also prompted me, having no 3dsMax experience but plenty of Papervision experience to start having a play. After many hours at work and home coming up to speed with the basics of modelling, lightning and materials and learning how to texture bake and deal with UV maps I think I’ve got a handle on what this is all about.

Here’s the first test. Nothing amazing but the speakers are fully UVW unwrapped in 3dsMax and the textures are baked on.

Next up will be testing animation exported from 3dsMax and some more detailed modeling.

Click image to open:

maxpreview.jpg

Keep reading…

January 19th, 2009

Microphone + SoundMixer.computeSpectrum = :(

After much frustration and searching high and low how to use the mega cool computeSpectrum method with Microphone input I’ve found it’s not possible. I actually found that out that this probably wasn’t going to be possible quite early in my search but didn’t want to accept this was the case… how could Adobe deny us the possibilities that this would open up!?

This article on Adobe live docs gave me the official bad news.

The closest I found to someone actually pulling this off was the flashliveaudiocontroller but as far as I can tell you can only run this on your local machine, not deployed across the web. Still, it’s kinda cool playing pong using your voice.