Home arrow Web Services arrow Page 3 - Getting Started with Flex
WEB SERVICES

Getting Started with Flex


In this discussion, I will focus on the basics of Flex, a web development framework based on Flash. The first section will be about the whys and wherefores of Flex. The second section will cover the steps involving the development of a Flex-based application. In the third and fourth sections, a real world application using Flex will be developed.

Author Info:
By: A.P.Rajshekhar
Rating: 3 stars3 stars3 stars3 stars3 stars / 5
June 10, 2008
TABLE OF CONTENTS:
  1. · Getting Started with Flex
  2. · Developing a Flex Application
  3. · Flex in the Real World
  4. · DataGrid

print this article
SEARCH DEVARTICLES

Getting Started with Flex - Flex in the Real World
(Page 3 of 4 )

The application that will be discussed in this section is an RSS feed reader. It will perform the following tasks:

  • Make a call to the RSS feed site.
  • Get the item name and description. 
  • Display them in a table.

Some of the controls and services being used in this example will give you an overview of the controls that will be discussed in the future. First let us create the user interface. The preliminary step is to declare the primary container (i.e. the application container).


<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">

</mx:Application>


After the primary container comes the tag that makes a call to the RSS service.


<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">

<mx:HTTPService id="httpRSS"
url="http://apmuses.blogspot.com/feeds/posts/default"
resultFormat="object"/>

</mx:Application>


The HTTPService makes a call to the service present at the site mentioned by the URL attribute and retrieves the response in the format provided as the value for the resultFormat attribute. In this case, it is in object format.

Next comes the secondary container the panel.


<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">

<mx:HTTPService id="httpRSS"
url="http://apmuses.blogspot.com/feeds/posts/default"
resultFormat="object"/>


<mx:Panel id="reader" title="RSS Reader" width="776" height="100%">

</ mx:Panel>


</mx:Application>


blog comments powered by Disqus
WEB SERVICES ARTICLES

- Dealing with Loose Coupling in a Service-Ori...
- Loose Coupling in a Service-Oriented Archite...
- Safety, Idempotence, and the Resource-Orient...
- The Resource-Oriented Architecture in Action
- Features of the Resource-Oriented Architectu...
- The Resource-Oriented Architecture
- Getting Started with Flex
- Automated Billing and Faxing for the Web
- An Introduction to Web Services
- The Foundations of Web Services: From Novice...
- Web Services Reengineering: Finishing Touches
- Fault Handling with Web Services
- Flow and Web Services
- Process Lifecycles and Web Services
- Business Processes and Web Services

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials