日志文章

2007年08月30日 16:55:51

flex...Getting Started

摘自:Getting Started with Flex 2 About the Flex product line
The Flex product line consists of a family of related products that let you design, develop, and deploy an entirely new class of RIA. The Flex product line includes the following products:

  • Adobe?Flex" 2 SDK (software development kit)
  • Adobe?Flex" Builder" 2
  • Adobe?Flex" Data Services 2
  • Adobe?Flex" Charting 2
This section contains an overview of the Flex product line and of Flash Player.

About Flash Player 9
While Flex applications run in a browser, they take advantage of the Flash Player 9 runtime environment for executing client-side logic, rendering graphics, and playing animation活泼, 有生气, audio, or video. Flash Player 9 supports a new higher-performance version of ActionScript (ActionScript 3.0) that works in conjunction with the expressiveness innovations改革, 创新 in Flash Player 8.

About Flex Software Development Kit 2
...........
About Flex Builder 2
.......
About Flex Data Services 2
You build on the functionality of Flex 2 SDK by adding Flex Data Services. Flex Data Services adds enterprise messaging support and a greatly enhanced data services architecture to the Flex 2 SDK. You deploy Flex Data Services as a standard web application on your J2EE application server or servlet container. Flex Data Services simplifies the programming model for interacting with data on the server and includes the following features:
  • A high-level programming model for synchronizing data changes between client and server or between multiple clients
  • Integrated services for using publish-and-subscribe messaging
  • Automated server data push and real-time data streaming
  • An open adapter architecture for integrating with JMS, Hibernate, EJB, and other data persistence mechanisms.
  • Authentication of client access to server resources
  • Access to RemoteObjects by using the AMF protocol
  • Data service logging
These features let you create and deploy enterprise-class applications that take full advantage of the rich presentation layer that the Flex 2 SDK provides. For more information, see Data Access with Flex Data Services.

About Flex Charting 2
.........




Benefits of using Flex
Enhanced user experience经验, 体验, 经历, 阅历 Flex lets you build applications that provide an engaging user experience. An engaging动人的, 有魅力的, 迷人的 user experience ensures that customers are drawn into your application, that they understand how to use it, and that they can more quickly complete a task or find the information they are seeking. //?user
A complete environment Flex is a powerful application development solution for creating and delivering RIAs within the enterprise and across the web. It provides a modern, standards-based language and programming model that supports common design patterns and includes a highly productive IDE.
Common deployment environment Flex applications execute on Flash Player 9, which is platform independent, so customers do not need to install custom client software. Also, Flash Player runs consistently in all browsers and platforms, so you do not have to worry about inconsistent不一致的//? behavior in different client environments.
Enterprise-class features You can use Flex Data Services to transparently synchronize data and support real-time data push. Messaging capabilities enable more robust精力充沛的>坚固的 applications that continue to function工作 after network connectivity is lost and allow multiple people in different locations to browse or chat in the same application. These features, plus加上 the ability to integrate audio and video, open the door to new ways of interacting with customers, partners, and employees.
Eliminate排除, 消除 page loads Applications running in Flash Player behave like desktop applications, instead of a series of linked pages. Flash Player manages the client interface as a single, uninterrupted flow and does not require a page load from the server when the client moves from one section of the application to another.
Standards-based architecture Flex, ActionScript, and MXML are designed to existing standards. MXML is XML compliant, implements styles based on the Cascading Style Sheets, level 1(CSS1) specification, and implements an event model based on a subset of the W3C DOM Level 3 Events specification. ActionScript is an ECMAScript-based language that provides support for object-oriented development. The Flex server executes on standard J2EE platforms or servlet containers.
Cross-browser compatibility Web applications should run the same on all browsers and platforms. By standardizing on Flash Player as the client environment, you are guaranteed a consistent user experience on all platforms and browsers. For more information, see Deploying Flex applications on Flash Player.

Flex application characteristics

Many types of applications are appropriate for development in Flex. Some of the requirements of these applications, and how Flex supports these requirements, include the following:
Client data collecting Collecting user input is one of the most common uses for web applications. Flex supports forms, and all common form elements, to let you create rich and dynamic user experiences. Flex forms include hooks to the Flex data modeling and data validation mechanism, and the ability to identify required input fields. For more information, see Using Layout Containers in the Flex 2 Developer's Guide.
Configuration One of the most common applications using Flex lets users perform product selection and configuration. The user works through a process to configure the features of a product, views or inspects the configuration, and then proceed through the steps required to complete a purchase.
Client-side processing of user input, including filtering and data validation Flex data management, which includes data models, data validators, data binding, and data services, lets you separate data representation from the way that a user views it. Typically, this design pattern is called Model-View-Controller (MVC). Flex also provides a powerful way to validate data and pass data between user-interface controls and external data sources with little or no server interaction. For more information, see Representing Data in the Flex 2 Developer's Guide.
Direct user feedback? Complex tasks must provide feedback to users when the user makes input errors or enters invalid information. Flex formatters and validators help ensure the quality of input data.
Multistep processes Many applications present the user with a process that includes a sequence of steps or decisions that require user input. For example, completing a registration form or checkout form often requires multiple steps to complete.
Ideally, you want your users to be able to navigate through multiple steps on a single page without losing the context of where they are in the process, and without losing any of the previous information that they have already entered. Flex supports the development of these applications by capturing state information, supporting browser Back and Forward buttons by using the History Manager. For more information, see Using Navigator Containers and Using the History Manager in the Flex 2 Developer's Guide.
Support for large data sets? Enterprise data applications often handle large data sets that must be transmitted to the client from the server, or transmitted to the server from the client. These large data sets can overwhelm the bandwidth of your network, and lead to sluggish application performance. Flex Data Management Services, a feature of Flex Data Services, lets you break large data sets into smaller units so that no single client can monopolize独占 the network.
Real-time data push? Applications often share data among multiple clients. For example, an inventory详细目录,存货 management system must keep all clients synchronized on product availability. One way to implement this type of system is to have the clients poll the server at regular intervals to check for updates. However, this design uses unnecessary network bandwidth and processing cycles when no updates are available. Instead, Flex Data Services lets clients subscribe to data objects on the server. When the server updates a data object, it then pushes those updates out to all subscribing clients.
Occasionally有时候, 偶而 connected clients Remote clients may not be able to maintain a connection to the server at all times. These clients are called occasionally connected clients. Flex Data Services let client applications perform offline data manipulation, and then automatically send updates to the server when the connection is restored.




Flex deployment models

Deploying Flex applications on Flash Player   Client-side only applications   Data access with HTTPService and WebService Using Flex 2 SDK, you can build applications that access remote data from a web application server, such as ColdFusion or PHP, through SOAP (web services), or HTTP GET or POST requests (HTTP services). note: not use Flex Data Services   For security, by default Flash Player does not allow an application to access a remote data source from a domain other than the domain from which the application was served. Therefore, a remote server must either be in the same domain as the server hosting your application, or the remote server must define a crossdomain.xml file.




Data Access with Flex Data Services
Flex Data Services provide a data services architecture that greatly enhances the services of the Flex 2 SDK. These enhanced data services add support for many features important to enterprise application development, including the following:
Additional RPC services with Flex Data Services
The RPC services of Flex Data Services are enhanced to add support for using the AMF protocol to access RemoteObjects. This lets you access Java objects (JavaBeans, EJBs, POJOs) on remote servers.

Flex Data Services includes a proxy that can intercept截取 RPC requests from Flex applications to remote servers, redirect the requests to the specified server, and then return the response to the client. Because the proxy acts as the broker for remote server access, you are not required to define a crossdomain.xml file on the remote servers, as you are when you use the Flex 2 SDK.
However, you can still access remote servers directly if they have defined a crossdomain.xml file.







Tags: JAVA  

类别: flex/AJAX |  评论(0) |  浏览(464) |  收藏
发表评论
看不清楚,换一张