Comments
litl_phil wrote: While it's nice that Google and Acer share the vision of cloud-based computing, it's also worth noting that we at litl already have a webbook on the market (available at litl.com) that runs our own cloud-based OS. Unlike Chrome, litlOS is focused on creating a new and better web experience for the home, so we don't have the usual browser interface, we have our own innovative UI. In conjunction with easel mode (litl's inverted-V position) and our growing cohort of litl channels (special apps t...
Cloud Expo on Google News


2008 West
DIAMOND SPONSOR:
Data Direct
SOA, WOA and Cloud Computing: The New Frontier for Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
GOLD SPONSORS:
Appsense
User Environment Management – The Third Layer of the Desktop
Cordys
Cloud Computing for Business Agility
EMC
CMIS: A Multi-Vendor Proposal for a Service-Based Content Management Interoperability Standard
Freedom OSS
Practical SOA” Max Yankelevich
Intel
Architecting an Enterprise Service Router (ESR) – A Cost-Effective Way to Scale SOA Across the Enterprise
Sensedia
Return on Assests: Bringing Visibility to your SOA Strategy
Symantec
Managing Hybrid Endpoint Environments
VMWare
Game-Changing Technology for Enterprise Clouds and Applications
Click For 2008 West
Event Webcasts

2008 West
PLATINUM SPONSORS:
Appcelerator
Get ‘Rich’ Quick: Rapid Prototyping for RIA with ZERO Server Code
Keynote Systems
Designing for and Managing Performance in the New Frontier of Rich Internet Applications
GOLD SPONSORS:
ICEsoft
How Can AJAX Improve Homeland Security?
Isomorphic
Beyond Widgets: What a RIA Platform Should Offer
Oracle
REAs: Rich Enterprise Applications
Click For 2008 Event Webcasts
SYS-CON.TV
Top Links You Must Click On


How I Saved Some Money With A Flex 2 DVD Library Application
Now there is simply no excuse for accidentally buying a DVD I already own

I have been collecting DVD movies for years now and, on some occasions, I have forgotten that I already owned a particular movie. More times than I hate to admit, I have ended up with two copies.

At my wife and budget's insistence, I created a Flex 2 application with a ColdFusion, CFC-based back end that allows me to store a DVD inventory with the expected data inputs (see Figure 1) into a mySQL database. This Flex 2 application displays the inventory in a DataGrid (see Figure 2) with an itemRenderer that displays the DVD cover art, and it utilizes an Amazon Web service (http://labs.insideflex.com/flextraining/movies/bin/ExampleAWSCall.xml) to dynamically locate the URL of a medium-sized image of the cover. In addition, a back-end CFC function automatically calls the YouTube API to grab the URL of a trailer for the movie, based on the title entered (see Figure 3).

Let's take a peek at the MXML code (see Listing 1). First, the database is a simple table (no normalization was used, but that certainly could be added). The movies table structure (http://labs.insideflex.com/flextraining/movies/bin/movies.sql.txt) is shown in Figure 4. Next, I used the Flex Builder 2's ColdFusion CFC Value Object Wizard to quickly create the server-side components from the database structure. Three CFCs and one ActionScript class later, the back end was complete (see Listing 2). The creationComplete event, in the dvdLibrary.mxml, calls a function, pageLoaded(), that triggers a RemoteObject call to the movieGateway component's getAllAsQuery() function. The returned data is pushed into a Bindable ArrayCollection, arcMovies, which serves as the dataProvider for the DataGrid, dgMovies. ItemRenderers are used to format the cells of the DataGrid, including a CoverRenderer to display the cover art for the DVD's Image data (this data is provided by the Amazon Web service (1)). In addition, a call to a YouTube (2) Web service supplies a movie trailer for each DVD added to the library. Adding a new DVD has only one required field - the DVD's title. The mx.events.ValidationResultEvent and mx:StringValidator are used to ensure that a title is entered (3). The title is passed to both of the Web services and saved to the database. A TitleWindow (4) is utilized to display a larger image of the cover artwork as well as to display the movie trailer.

Building this project was fun as well as useful. The full source code is available at http://labs.insideflex.com/flextraining/movies/bin/srcview/index.html.

Now there is simply no excuse for accidentally buying a DVD I already own. I will soon be entering my entire collection of DVDs into this new Flex 2 DVD library. From now on, I plan to check this library before heading out to the video store. For the final online version of this Web application (http://labs.insideflex.com/flextraining/movies/bin/dvdLibrary.html), I've added search functionality so that as the library grows, it will still be easy to filter out and find the movies. I already have plans to port this Flex Web application to an Apollo desktop application in the coming weeks. If you would like to keep an eye on my progress, please visit my blog, www.flexination.info, when you have time. If you have any follow-up questions, feel free to ping me at the e-mail address listed with the article.

About Michael Givens
Mike Givens is the CTO of U Saw It Enterprises, a Web technology consulting firm based in Marietta, GA. He is an Adobe Corporate Champion known to share his experience and evangelism of all things Adobe. Certified in both ColdFusion 5 and as an Advanced CFMX Developer, he has been using ColdFusion since the days of Allaire Spectra. For the last 11 years, he has been seen with his head down - deep in the code.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

dvdXsoft DVD to Zune Converter can convert video DVD to MP4 Video files suitable for Zune, PSP or iPod devices! This software is the best for converting DVD to MP4 files in speed and compatibility.

zuneconverter.net/dvd-to-zune

SecondLife DVD Maker is a powerful and easy-to-use DVD Author and Burning tools . You can make your own DVD title with the movie captured by your DV or downloaded from the internet.

http://www.vista-download.net/audio-video/dvd-software/


Your Feedback
realgeorge39 wrote: dvdXsoft DVD to Zune Converter can convert video DVD to MP4 Video files suitable for Zune, PSP or iPod devices! This software is the best for converting DVD to MP4 files in speed and compatibility. zuneconverter.net/dvd-to-zune
barrett63 wrote: SecondLife DVD Maker is a powerful and easy-to-use DVD Author and Burning tools . You can make your own DVD title with the movie captured by your DV or downloaded from the internet. http://www.vista-download.net/audio-video/dvd-software/
Enterprise Open Source Magazine Latest Stories . . .
Oracle seems to have divided the open source ranks over the MySQL delay it’s having closing its acquisition of Sun. Eben Moglin, the GPL’s most ardent defender and delineator, the lawyer who has worked hand in glove for years with the Free Software Foundation’s founder Richard Stallman...
Cloud computing is a game changer. The cloud is disrupting traditional software and hardware business models by disrupting how IT service gets delivered. Entrepreneurial opportunities abound as this classic disruptive technology begins to proliferate, so it is no surprise that SYS-CON'...
The irony is that Oracle has advanced MySQL, lost money in the process, and helped its competitors - all at the same time. When Oracle buys Sun and controls MySQL the gift (other than to Microsoft SQL Server) keeps on giving as the existential threat to RDBs is managed by Redwood Shore...
WSO2, the open source SOA company, today announced the launch of the WSO2 Cloud Platform. Available today, the new WSO2 Cloud Platform features a family of WSO2 Cloud Virtual Machines; WSO2 Cloud Connectors for enabling fast, secure cloud services; and the multi-tenant WSO2 Governance-...
Now, the open source Mozilla Thunderbird client software can be used with Open-Xchange collaboration software. The "Community OXtender for Thunderbird" software connector gives users full access to appointments and contacts stored in the Open-Xchange Server and enables them to use Thun...
Morph Labs, a leading provider of enterprise cloud computing technology, today announced an introductory trial of the Morph CloudServer, an open, standards-based server IT organizations can use to rapidly model and evaluate their cloud implementations. A miniature "Cloud Environment in...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers
ADS BY GOOGLE