« November 2006 | Main | June 2007 »

February 28, 2007

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.
There are a few problems remaining. If you try to use the movie outside of blog.lib.umn.edu the cross-domain policy prevents the rss from being read. I did play around with using an XMLhttpRequest and was able to get the rss into javascript on a remote server. I could parse it in javaScript then pass it to the Flash movie. I also wanted to have the waveform of the mp3 display as a timeline, but I can only do that in Action Script 3. Everything is possible, but I don't want to refactor the whole deal until there is a good reason to do it.
If you would like a copy of the source files, email schub019@umn.edu.

February 27, 2007

Popular Flickr Tags

Download file

africa amsterdam animals architecture art august australia autumn baby barcelona beach berlin birthday black blackandwhite blue boston bw california cameraphone camping canada canon car cat cats chicago china christmas church city clouds color concert d50 day dc december dog england europe fall family festival film florida flower flowers food france friends fun garden geotagged germany girl graffiti green halloween hawaii hiking holiday home honeymoon hongkong house india ireland island italy japan july june kids la lake landscape light live london losangeles macro me mexico mountain mountains museum music nature new newyork newyorkcity newzealand night nikon nyc ocean paris park party people portrait red river roadtrip rock rome san sanfrancisco scotland sea seattle show sky snow spain spring street summer sun sunset sydney taiwan texas thailand tokyo toronto travel tree trees trip uk urban usa vacation vancouver washington water wedding white winter yellow york zoo

February 26, 2007

The Robot voice test

Download file

xyzsnow xyzsnow xyzsnow xyzsnow A wish is a memory of the future. All memories change as they become more remote. The network is the story. A story reveals the storyteller more than what happened. You are made up of more space than matter. I am a radiant being full of light and love. The millions are here

Test MP3 in RSS

I want to see if I can import the most recent mp3 to Flash by parsing the RSS from my blog.
Wish me luck.