Building a Photo Gallery with Flex and PHP 3
June 18, 2009 from 6:00 PM - 8:00 PM
Arrive early for Pizza and refreshments
at the...... PDX RIA Adobe Group
Portland Rich Internet Developers Group - PDX RIA
PCC Sylvania Campus - Library room 112
12000 SW 49th Ave.
Portland, OR 97219
I cover more that just boring photo gallery rendering. The interesting topics are:
I have Flex client photo rendering application, which sources the photos from a MySQL database via AMF 3 RemoteObject messaging thorough the WebORB application server, which I will review in some detail. The Flex client's particular interest is that it performs received photo array caching before rendering to eliminate photo display update flickering. There's not much around in the way of good Flex client photo caching examples. My Flex caching example, is simple coding but elegant in how it performs.
Second, there's a problem in remoting photo arrays from a PHP server. PHP insists that photos are strings (and allows not other data type else can be force cast), and Flex likes (and also insists) that photos be received as ActionScript 3 ByteArrays. Simply PHP photo strings and Flex photo ByteArrays are not compatible in any way. I have yet to see a PHP application server which can properly return photos to the Flex client via AMF 3 RemoteObject messaging. I have created the PHP code chicanery, which dynamically converts PHP photo "strings" to AMF 3 ByteArray data streams. I would cover technique the interesting details of how and why I created this code hack.
Third, I will demonstrate using MySQL full text searching functions, to return photos based on powerful searching capability. Very few developers are even aware of what can be done to access a database base on full text searching. I would like to share what I know about how to use full text searching for return of specific database records.
Fourth, Flex developers have difficulty returning arrays of PHP objects (photos + metadata in my example) from the server to the Flex client and the processing the received objects. I would also briefly review the object array transfer "how to" concepts too.