YOUR FEEDBACK
IBM Buys Its Way Out of Antitrust Trouble
Plato wrote: L.L.Bean was never actually a customer of PSI. At most, they we...


2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
MXDJ TOP LINKS YOU MUST CLICK ON !


Web and Mobile Convergence Sharing Data Between Flex 2 and Flash Lite
Developing a blog aggregator

Digg This!

Page 2 of 2   « previous page

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.


Page 2 of 2   « previous page

About 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.

Motorola Krzr K1 wrote: Here is the page that you asked me to find. It is 3 reviews about Motorola Krzr K1 in it. http://skyhaifa.com/revie wes.php?cat_id=19&model=n okia-n93 Motorola Krzr K1
read & respond »
Motorola Krzr K1 wrote: Here is the page that you asked me to find. It is 3 reviews about Motorola Krzr K1 in it. http://skyhaifa.com/revie wes.php?cat_id=19&model=n okia-n93 Motorola Krzr K1
read & respond »
LATEST FLEX STORIES & POSTS
Adobe's Kevin Lynch and Microsoft's Scott Guthrie to Keynote AJAX World RIA Conference & Expo
Two of the biggest launches in Rich Internet Application history took place in 2007/2008 when Adobe launched AIR 1.0 in February '08 and Microsoft launched Silverlight (September '07). At the 6th International AJAXWorld RIA Conference & Expo in October SYS-CON Events is delighted to be
Google and Yahoo Can X-Ray Your SWF Now
Adobe announced a collaboration with search industry leaders to dramatically improve search results of dynamic Web content and rich Internet applications.
DreamFace Interactive Delivers Mashup Kit: DreamFace-Fx for Adobe Flex
Following the private Beta release last month, DreamFace Interactive announced the general availability of the DreamFace-Fx Mashup Kit for Adobe Flex. As promised, DreamFace-Fx is the first Mashup Kit to reach developers in a comprehensive roadmap which will extend the DreamFace Open S
Integration between Flex and AJAX made easy
Flex is a great way to introduce rich Internet applications in your enterprise. But in the real world, you often have to do it gradually. Majority of the business units of any enterprise who are sold on RIA would prefer adding Flex-based components to their old but working Web 1.0 app
AJAX and Enterprise RIA Tools - JSF, Flex, and JavaFX
2008 is going to be an important year for Rich Internet Applications. Most organizations are delivering or planning to deliver Rich Internet Applications; however, at the same time, most IT managers are facing a dilemma: which Rich Internet Application technology and platform to use? T
Adobe Releases Significantly Enhanced LiveCycle ES
Adobe has released a substantially enhanced BPM/RIA solution. While LiveCycle suite isn't new software, its popularity increased in June of 2007 when the entire suite started to run on the same J2EE server and the RIA components were introduced. Today, over 5,000 enterprises use LiveCy
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