020 7920 7120 | public@publicreative.com

Posts Tagged ‘flash’

July 26th, 2010

Node AMF

We’ve been having some fun with NodeJS at Public recently, and I’ve been looking for excuses to get more involved with it. We do a lot of Flash work, and make a lot of games, so Flash remoting is something we do regularly. We prefer to use AMF over XML, so I looked around for a NodeJS module to see if we could work with AMF within Node. I figured Node might be a viable platform for creating simple multi-player back ends, or other real-time environments like chat rooms.

I failed to find an AMF library for Node, and I’m not hugely surprised; Flash is rather out of favour with today’s JavaScript gurus. Secretly pleased that I couldn’t find anything, I set about writing my own. It is also the first time I’ve put an open source project on Github.

See node-amf on Github (more…)

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.

(more…)