| By Marco Casario | Article Rating: |
|
| November 5, 2006 03:00 PM EST | Reads: |
37,474 |
The HTTPService request waits for a parameter that represents the URL of the post selected by the user in the datagrid control. These saved values are stored into the database and will be requested by the Flash Lite application. So that all the news bookmarked will be available via a Flash Lite enabled mobile phone.
For our purposes, this is enough, but you could go further in extending the Flex application.
You should use the StringValidator tag to validate the data inserted by the user into the Text Inputs so that you avoid errors on the business tier. Or, you could add some styles or customizations to the user interface using Cascading Style Sheets (CSS).
The Mobile Application: Creating a Flash Lite XML Parser
All the data is stored in the MySQL database. Unfortunately, Flash Lite
is not able to access a database directly. Therefore, in order to
access data, we need to develop a PHP function that makes the
connection and returns the values to our Flash Lite interface.
You can try it by launching the URL, http://88.149.156.198/develop/rssToDb/rssmobile.php. However, you will see that another limitation occurs because the Flash Lite 1.1 player cannot parse XML directly. It can load dynamic data via the loadVariables function, using the name/value pair data structure. Using this method, you can load almost any data within Flash Lite 1.1 content.
We were inspired by a ready-to-use PHP RSS parser written by Alessandro Pace who explained in an article for Adobe Developer Center (www.adobe.com/devnet/devices/articles/flashlitell_rss.html) how to create a Flash Lite 1.1 RSS (Really Simple Syndication) reader using a server-side PHP RSS parser.
With the following PHP 5 XML parser, a RSS 2.0 feed will be read to extract the <title> and <description> tags contents for each <item> block, and then the content will be customized so it can be loaded into the Flash Lite 1.1 RSS reader on the mobile phone, as shown in Listing 5.
The values returned by the echo will produce the following output:
&title1=Tips for Developing Flash Games for the iRiver U10&description1=New article on DevNet at Adobe: Tips for Developing Flash Games for the iRiver U10. It includes two samples available for download. The article is written by Sung-Hee Park of MiniGate. Alessandro
The code is pretty simple and well commented but if you want further explanation, you can read the "Analyze the Code" section of the tutorial (www.adobe.com/devnet/devices/articles/flashlite11_rss_02.html).
It's now the turn of the Flash Lite user interface. You can download the complete application on the Adobe Devnet : Flashlite11_rss_samples.zip (http://download.macromedia.com/pub/developer/flashlite11_rss_samples.zip). Opening the Flash file, you'll see the application is made up of 5 frames and 3 layers. The most important part of code is contained in frame two, where the call to the server is made using the loadVariable function:
loadVariable (http, "");
The "http" variable points to the server-side PHP file's URL, and it's definied on frame one:
http = "http://88.149.156.198/develop/rssToDb/mobileparser.php";
The loadVariable function reads data from an external file, such as a text file or text generated by server-side script (Coldfusion, PHP ...), and sets the values for variables in a target movie clip. The text at the specified URL must be in the standard MIME format application/x-www-form-urlencoded (a standard format used by CGI scripts):
&title1=more on apollo&description1=news from apollo&title2=flex url kit&description2=
a new kit for handling with URL has been released
All the navigation features are hidden on frame five inside the hidden button used to select the variables title and description and to scroll the dynamic text contained in the description variable, as shown in Listing 6.
Conclusion
The game is over. Thanks to the Flash
Platform, in just a few simple steps, we built a simple Flex 2
application that manages data with PHP from a MySQL database. Data is
then exposed and presented through a mobile application that uses Flash
Lite as development technology. Users can reach through their cellular
phones blog posts they previously selected and stored via a Flex 2 Web
application.
Published November 5, 2006 Reads 37,474
Copyright © 2006 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Marco Casario
Marco Casario is CEO of Comtaste, a company devoted to develop Rich Internet Applications on the Web and for mobile devices.
He collaborates intensively with Adobe Italy as a speaker at conferences and as a consultant for Flash, Flex, and Flash Lite.
Learn more about Marco Casario at his blog http://casario.blogs.com. In 2005, Marco has founded Comtaste, a company dedicated to exploring new frontiers in Rich Internet Applications and the convergence between the web and the world of mobile devices — MobyMobile and YouThru are representative of their recent work. He is founder of the biggest worldwide Flash Lite User Group and of www.augitaly.com, a reference point for the Italian community of Adobe users, in which he carries out the role of Channel Manager for the section dedicated to Flex.
![]() |
Motorola Krzr K1 12/04/06 08:36:50 PM EST | |||
Here is the page that you asked me to find. It is 3 reviews about Motorola Krzr K1 in it. |
||||
![]() |
Motorola Krzr K1 12/04/06 08:36:02 PM EST | |||
Here is the page that you asked me to find. It is 3 reviews about Motorola Krzr K1 in it. |
||||
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Cloud Computing Journal: Adobe to Deliver ColdFusion in the Cloud
- Adobe Unveils LiveCycle Enterprise Suite 2 for Deployment in the Cloud
- Adobe Flex Developer Earns $100K in New York City
- Adobe May Cooperate with Apple to Transplant Flash Player to iPhone
- Ph.D. in Twitter Anyone?
- Eolas Sues the Internet
- Adobe LiveCycle Enterprise Suite 2 for Cloud Computing
- Adobe Betas Target RIAs and Cloud Computing
- Special Report on the Emerging Cloud Computing Trend
- Adobe Cans Another 9% of its Workforce
- My Thoughts on Ulitzer
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Ulitzer Live! New Media Conference & Expo
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Eval JavaScript in a Global Context
- Fig Leaf Software to Exhibit at Government IT Conference & Expo
- Cloud Executives Feature on Cloud Computing Expo Power Panel
- Software Flexibility in the Cloud - Part 4 of 5
- Cloud Computing Journal: Adobe to Deliver ColdFusion in the Cloud
- Is Microsoft as Free as Open Source?
- Adobe Reader Sued
- Adobe Unveils LiveCycle Enterprise Suite 2 for Deployment in the Cloud
- Where Are RIA Technologies Headed in 2008?
- Cover Story: How to Increase the Frame Rates of Your Flash Movies
- AJAX World RIA Conference & Expo Kicks Off in New York City
- Your First Adobe Flex Application with a ColdFusion Backend
- Adobe Flex 2: Advanced DataGrid
- i-Technology Blog: Death-Knell For "Rich Media? Hardly!
- Adobe/Macromedia - Microsoft, Look Out!
- How To Create a Photo Slide Show ...
- Adobe Flex Interface Customization - Themes, Styles, Skins
- Personal Branding Checklist
- Has the Technology Bounceback Begun?
- "Real-World Flex" by Adobe's Christophe Coenraets




































