Adobe Community Professional

Matt Gifford. Powered by caffeine. Owner of
too many bad shirts. Web wrestling lover of
ColdFusion, Flex and all things geek.

This is the first fun FLEX project that I’ve been working on, and I’m very proud of it, and what I’ve learnt in the process. The original idea was to create a more dynamic interactive method of sharing some of my favourite videos from YouTube.

The base source code was taken from Doug McCune’s fantastic coverflow carousel. The carousel was superb, but within the source code all of the elements were hard-coded onto the stage.

I wanted to make the whole thing as dynamic as possible, and generate the elements within the ActionScript calls, cutting out any hard coding.

This application draws the data from an XML playlist, which contains the artist, song title, and reference ID. The required thumbnail images are saved onto the server for each video to be displayed.

The FLEX app then loops through the XML, generating the panels, images and buttons within the loop, populating the stage.

Viewing the video, a state transition is performed to switch to the video player, which reads in the XML for the chosen video to display the video information, and starts to stream the video directly from YouTube.

There are a lot of amendments and addtional functions to place into the application, but for now, I’m happy with the results!

Ooops. This feature requires the Adobe Flash Player to run.
Get Flash now so you don’t miss out on this, or anything else!

Pimp this post:
  • Digg
  • del.icio.us
  • StumbleUpon
  • Technorati
  • Twitter
  • Facebook
Gorilla Works Ltd