资 源 简 介
This project is a demonstration of 2 things - firstly, how to use the new nativeProcess capabilities of Adobe Air 2 (Beta) to communicate with PHP via the command line. And secondly, how to extend that to using AMF messages to communicate with MYSQL via AMFPHP via the PHP CLI.
The Main.mxml file contains the vast majority of the code. This attempts to retrieve two records from a little MYSQL table, where each record contains a photo from Nasa - and if everything goes well, the application displays the photo from the second selected record.
Please be aware that this is a straight-forward no thrills example of one way to implement the above. Error-handling is minimal and output is mainly left to trace statements (apart from the display of the photo at the end of the process).
Important note: the AMFPHP source has been included in this project as it has been patched with code from Alessandro Crugnola at http://www.sephiroth.it/weblog/archives/2008/07/amfphpi