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

What should be known in Flex

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

Share

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

This article mainly introduces what should be understood in Flex, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.

The things you should know most about Flex

1. Redefine: Flex is the web standard

MXML is the standard language for Flex applications, which allows developers to develop application architectures, including not only the presentation layer but also classstructure. This is easy for people in web design classes and background developers because MXMLmarkup is very similar to HTML. Similarly, ActionScript within Flex is comparable to JavaScript, and Flex uses the web standard CSS to control the presentation layer. It is also a good way to build an application architecture because the tree nature of the language makes it a good integration of a typical application container-component model. Therefore, the source code is easy to release because it is not a binary IDE-specific file, but a human-readable text file.

It is worth mentioning that MXML is a somewhat minimalist representation of ActionScript, which is a scripting language subordinate to ECMA. This is because MXML is converted to ActionScript3 at compile time, so it is possible to use ActionScript3 to build Flex applications even if you have not used or learned MXML. However, for many applications, using MXML combined with ActionScript is a common method.

2.Flex is Flash, and then something else.

If you are familiar with Flash's lightweight vector animation and excellent user interface, you will be familiar with Flex. Flex is built on FlashPlayer, which is the engine for all Flash content. So, there's nothing Flash can do that Flex can't.

Flex is also fully available for display programming, API drawing, and animation in all Flash. However, Flex also provides the architecture for Flash applications, providing a complete set of interface components and containers to help developers write powerful and extensible applications.

3.Flex is very capable.

Many companies migrate their software from Java to Flex. This is because Flex can provide many of the same performance as Java, such as "writeonce" capabilities across operating systems and object-oriented architecture, but Flex has a much smaller package and can download a lot of outsourcing. Flex applications can be used for both web-side and desktop-side software (with AdobeAIR) and can take advantage of a separate codebase.

Because Flex is built on the ubiquitous FlashPlayer, whatever you write can run on the machine on which it is installed, and computers with FlashPlayer9 (mostly Internet-enabled computers) account for up to 90%. FlashPlayer frees you from the disadvantages of switching between different browsers, frees your software from stupid bug and lengthy code, and avoids rewriting code due to the release of new browsers. It plays as well as the sound effects on every machine. When you write code for AdobeAIR, you immediately have a desktop application across operating systems that can run on MacOSX, Windows, and Linux systems.

4.Flex is server independent

Flex is made for data, and it can accept data in most common formats and interact with all common servers. This includes local and remote downloads of XML, JSP, PHP, ASP or ColdFusion. It's up to you. You can download information through HTTP or SOAPweb servers, or even interact directly with Java server objects or convert binary data online. AdobeAIR can read and write to SQLLite database. If you have a special back-end server, Flex may also use them and in most cases it is easy to operate.

If you have a good set of service components in the framework, most likely you can get your data in a few lines of code and bind directly to the UI component. If you need more fine-grained control, you can also connect to the binary socket and even download files (on FlashPlayer10).

5.Flex is what you want it to be.

The default interface for Flex applications is configurable. Due to the programmability of the kernel, the Flex app can be adjusted to what you like-change the color here and there, change the transparency, change the shape and size controlled by UI, all through standard CSS. CSS is not a requirement because MXML allows developers to adjust styles and skins through simple tagging. If you use FlexBuilder, your application has a complete WYSIWYG compiler that allows you to make and insert graphics and have all the CSS written for you. In addition, the Flex app has a bunch of themed sets that allow you to change the entire look and feel with just one line of MXML code.

It is worth mentioning that Flex, unlike Java and JavaScript, does not inherit UI from its operating system. In other words, a Flex application running on MacOSX will not have buttons like Mac buttons, and calling FlexAlert will not render the Macalert table. Flex has a built-in interface, but if the appearance of the operating system is what you want, there are also some themes that can bring you very close to the appearance of the operating system.

6.Flex is light and fast.

Because it is built on top of ActionScript3, the Flex framework is surprisingly fast. ActionScript3 significantly improves initialization time, and built-in support for delay instantiation is also obvious. With a brand new JIT (Just-in-Time) compiler, your code will run very fast. Rich data visualization and animation can be done without using the user's CPU. Since previous 3D animation has always been a bottleneck, new support in Flash20 will solve this problem. There are even hardware accelerators for images to take full advantage of modern graphics processing cards (graphics cards).

Despite the controversy, Flex is really light. Using a set of UI components will certainly be larger than ActionScript code built from scratch, but given their power, these components are really small. In fact, a typical application built using an AJAX framework is often larger than a small Flex application. Although FlashPlayer is often pre-installed on a computer, it is only a few megabytes of download. It is worth mentioning that there is also a new component called frame caching (frameworkcaching), which can pull out a considerable portion of the downloads for the framework components. This feature stores standard FlexUI components on the user's computer so that other Flex applications can be downloaded quickly without having to download the entire framework.

Thank you for reading this article carefully. I hope the article "what should be learned in Flex" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

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