connectedpixel.com

actionscript, web development

Flash Forms in PHP with AFLAX

Submitted by joelmay on 10 November, 2005 - 8:04am.

Paul Colton has ported my Flash 8 wood texture code to AFLAX. It's amazing that it works so well. He must have figured out some sneaky, under-the-hood code to make it work (sneaky in a good way). Still blows my mind.

In addition to creating typical Flash movies, here's another possible use for AFLAX: Flash Forms for PHP (or ASP.NET for that matter).

Until recently, I had no idea what Flash Forms were. But a couple nights ago, I attended an mmsug meeting where Derek Versteegen demonstrated some work he's done with Flash Forms and how they work.

Flash Forms are similar to Flex. The swf is created on the fly on the server. The difference between these swf files and regular swf files is analagous to the difference between dynamically generated html and static html. The dynamically generated swf has content based on the execution of the page's ColdFusion logic and database lookups. Each user gets a unique swf (I think).

The resulting web page looks pretty good. The flash form is nicely integerated with the html. And of course the flash form is much nicer than an html form. (Derek's form had multiple tabs which substituted for multiple html form pages).

I think something similar could be done with AFLAX.

Although AFLAX does not literally generate unique swfs for the user, php could dynamically generate the JavaScript that drives the AFLAX swf. It would amount to the same thing.

With some new JavaScript and PHP libraries combined with AFLAX, we could have open-source Flash Forms for PHP.

Nola Stowe (not verified) Says:

Awesome!

10 November, 2005 - 11:02am

I didn't know about AFLAX. Pretty cool, thanks

joelmay Says:

AFLAX has some interesting

11 November, 2005 - 9:28am

AFLAX has some interesting possibilities.

If someone can put the php libraries together, php will have access to more of the cool features that ColdFusion has.

It could be similar to amfphp.

Balthor (not verified) Says:

Are there any examples of

15 November, 2005 - 5:42am

Are there any examples of flash forms with PHP?

joelmay Says:

Umm... well... no.

15 November, 2005 - 3:41pm

Umm... well... no.

My point is that it is possible. If there is a php expert who has some familiarity with ColdFusion, JavaScript and Flash has some spare cycles, maybe he/she could do it.

I don't have time, but I think it would be a fun project.

AFLAXER (not verified) Says:

PHP/Flash forms

23 November, 2005 - 11:51pm

PHP/Flash forms have been out for years. use google ;)

Balthor (not verified) Says:

PHP/Flash forms

24 November, 2005 - 7:54pm

I've found plenty examples of generating a form in flash and then the separate PHP code. I was curious if there was a method of generating something similar to ColdFusion's flash forms....a simple cfform tag that will generate the flash file. I have found Plex (http://www.plextk.org), an ajax framework that works similar to Flex.