Source code can be found here.
Why the hell would you want to go through all the fuss of actually learning this tech when I basically state above that you can do everything Flex can the “normal” way? Well first of all it turns out that there is a lot of rich application stuff out of the box. Stuff that you can’t simply do within a reasonable time with Ajax. Being able to accomplish intuitive interfaces that even your granny could navigate in 5 minutes is a breeze with Flex, is it a breeze with Ajax? I don’t think so. Having said that I still believe that the usefulness of Flex is somewhat limited. It would typically work for VPN, shopping, game, trading or intranet solutions. Last I heard the Googlebot could not parse shockwaves so any kind of CMS that you want people to find is for example out of the question.
Lets get on with the tutorial! After completing Sepiroth’s introductory AMFPHP tutorial I decided to try and make something useful and why not start with a registration form complete with with some very nice validation bling? When checking out the Flex manual I noticed that I already had some basic validation logic that I easily could put in the MXML, after connecting some Actionscript to handle more advanced stuff and the connection to PHP, the Flex app was finished. Putting together a rudimentary PHP framework with models and controllers completed the whole application (don’t worry it’s all in the source you can download above).