Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create a Flex application

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to create a Flex application, the article is very detailed, has a certain reference value, interested friends must read it!

Flex Foundation

Flex is developed based on components, and in order to design and develop Flex applications more efficiently, you should be familiar with these development patterns and procedures.

Create a Flex application

Flex application model

When Flex creates an application, you use components (container / containers and control / controls) to describe the user's interface.

For example, in the following illustration, two different box containers are shown, each containing three button controls and a ComboBox control:

Flex's MVC model

In order to enhance the reusability and maintainability of the system, a model with good architecture, namely Model-View-Controller (MVC), should be adopted.

1. Model / Model components encapsulate data and data-related behaviors.

two。 The view / View component defines the user interface of the application.

3. The controller / Controller component is responsible for handling data connections in the program.

Application of web Server

Typically, the types of web servers involved are:

1. Pure web servers, which simply reply to a simple static HTML page with the user's request. In this case, you need to embed the SWF file of the Flex application into a HTML page.

2.web application servers, such as JRun, ColdFusion, or PHP, can generate pages dynamically. In this case, you will use the libraries related to server technology and process their contents dynamically.

3.J2EE application server or servlet container. To make a request to a J2EE application server or servlet container, such as JRun, Tomcat, or WebSphere, you usually need to use FlexDataServices.

The usual steps of program development

To develop a Flex application, you usually take the following steps:

1. Insert the MXML root tag in a text editor or integrated development environment (IDE), such as AdobeFlexBuilder, Eclipse, or IntelliJ.

two。 Add one or more containers.

3. Add controls to the container, such as input fields, buttons, and output bars.

4. Define a data model.

5. Add a web server, HTTP server, or send a request to a remote Java object.

6. Add validation for data entry.

7. Add scripts to the component.

8. Compile the application into a SWF file.

Publish the application you can publish the application as a compiled SWF file, or if you have FlexDataServices, you can publish the application as a set of MXML and ActionScript files. The client accesses in the following formats:

Http://hostname/path/filename.swfhttp://hostname/path/filename.mxml

The above is all the content of the article "how to create a Flex application". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report