Flickr Flash interface in blog posting.
As you can see in the two previous entries, my latest experiment is a success.
The purpose is to allow someone to host their audio and text on a blog, images on Flickr, and have the Flash movie controlled by the rss.
Here's what's going on behind the scenes.
A spoken word mp3 is uploaded to the entry and is enclosed. The text of the mp3 is placed in the entry body.
The flash movie object/embed tag is added to the entry body. The flashVar in the tag tells the movie the title of the entry it is supposed to read.
When the movie initializes it reads atom.xml using an absolute path (so it works when reading a single entry which has a different path from the main view). It finds the entry with a matching title then extracts the text from the entry body. The url of the mp3 is also found and is used to load the audio track into the player.
When you hit play it starts the mp3 and begins spooling out words from the text proportional to the soundObject.position. At random intervals a word is sent as a tag to flickr and ten image results are returned based on the tag. One of the images is selected and displayed in the movie.
If you would like a copy of the source files, email email@example.com.