|
Comments
|
Today's Top SOA Links
CF & Flex 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
By: Michael Givens
Apr. 21, 2007 03:00 PM
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.
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, 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. Reader Feedback: Page 1 of 1
Your Feedback
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
|||||||||||||||||||||||||||||||||