This was a personal project that I had been working on recently. I wanted to do a more flash centric theme redesign, but I still wanted to use Drupal for controlling my menus and automatically updating content categories. This of course required that I come up with a reliable way of populating a flash menu based on changes to Drupal's SQL database. After a little bit of trial and error I think I finally came up with a solution that works well enough to be considered stable. I posted about this on my blog, but I thought I would add a post here in case anyone else was looking for something similar.
Dynamically Auto-Populating Flash Menu Using AS3/PHP (No AMFPHP Required)
My main reason for avoiding AMFPHP is that there is not a recommended release of the required services module available for Drupal 6 users. Not that this solution is perfect, but since it does not tie into Drupal directly, this method easily sidesteps any possible stability concerns in regards to Drupal itself.
My primary concerns are with security, since if you know the name and location of the config file it would be possible for outside users to retrieve or write data to your database simply by modifying some php. The key here of course is to hide the config file, or to do some sort of obfuscated remote entry system, and to lock off access to the php using your crossdomain.xml but for the purposes of this demo I kept things simple. (The above can be said for almost open source php system though, if you can see how the system works, you can always find points of weakness that could be exploited.)
Comments
Flash Menu
get the results with menu_navigation_links()
http://api.drupal.org/api/function/menu_navigation_links/
*send the menu items to flash (print out with PHP loop) during the embed using "flash vars".
use flash 'duplicate move clip' to create each button and assign URL and link name.
hope it helps.
there are plenty of 'hooks'
there are plenty of 'hooks' in Drupal to send any data you want to flash w/PHP during the flash embed with out flash remoting.
can also embed flash with
can also embed flash with Javascript over any DIV tag and parse that HTML in from the "innerHTML" of that div tag
as well as read in data with JSON and jquery.
flash can also communicate with javascript
you could evev submit forms by passing in a form token.. etc.
can use LoadVars Flash object and PHP to query the drupal DB.
So there are more options than remoting if you want to look into those.