I’m pleased to see that an article I wrote for Adobe DevNet has just gone live. “Creating Drupal Sites for Flash or Flex” describes the benefits of using a CMS for your Flash or Flex sites, how to set everything up, getting Flash talking to Drupal, and also covers the various modules available to power your site.
Drupal is probably the most popular open source CMS out there, it has an enormous user community, and the best thing of all is probably the fact that you don’t have to write any PHP or SQL to take advantage of this as a result! (Unless of course you want to, Drupal is fully extensible).
There are many ways to use Drupal with the Flash platform, ranging from simple content access, to automatically generated content that is formatted for and consumed by both Flash and non-Flash enabled devices. Without going into any more detail, please feel free to head over to the DevNet article to read more and download the source code and examples.
It appears there have been some name changes in the Services module called by Flash (“views.getView” becomes “view.get” and “node.load” becomes “node.get”) – thanks to Stan for pointing this out in the comments. As a result I’ve modified the code and provided two versions below, the download I linked-to above has also been updated. The example FLAs are also now Flash CS3 compatible.
- Download source/examples (for Services 6.x-0.11 or newer, uses views.get and node.get).
- Download older version here (for Services 6.x-010 or older, uses views.getView and node.load).
It seems the new Services module also has a breaking change when it comes to generating the sitemap, you’ll see no properties on your nodes except id. Do not download the official 6.x-0.14 release, instead get the 6.x-2.x-dev development snapshot as the bug has been patched (unless the official release is newer in which case the patch will already be in). For a deeper explanation, it appears the PHP was not loading the nodes you were requesting, so the only info it could return was the ID which wasn’t a whole lot of use for a sitemap!