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 are the common misunderstandings in building Flex applications?

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Editor to share with you what are common misunderstandings in the construction of Flex applications, I believe most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's learn about it!

Several misunderstandings in the Construction of Flex Application

In this news, Adobe's James Ward and InfoQ.com bring you another top 10 of Flex (the top 10 of Flex***). Flex is an open source application development framework for building rich Internet applications that run on web (using Flash Player) or on the desktop (using Adobe AIR). All in all, Flex is a powerful and easy-to-use framework, but today let's take a look at the mistakes you often make when building Flex applications.

For newcomers to Flex, read InfoQ's latest Adobe Flex Basics to get a quick understanding of the framework. Here is a list of mistakes that can be made:

1. Use the RIA framework to build Web1.0 applications (new technologies change)

One of the challenges in the transition from Web 1. 0 to RIA comes from a shift in the way you think. Flex gives developers an advanced component library that allows them to accomplish many tasks that were previously impossible. But in many cases, this ability of Flex is overlooked, and it is only used to implement more traditional Web 1.0 applications.

Building Web 2.0 applications means more than just local refreshing and rotating rounded corners of the page. For example, Flex developers should use vector graphics to provide users with a visual representation of data and advanced control over the flow of rich applications. Stephan Janssen recently discussed the topic with InfoQ.com:

As a Java developer, learning object-oriented ActionScript and UI markup languages is a piece of cake. But the real challenge for (Java) developers is that we are not designers, and these two technologies are essential for RIA.

two。 Break the standard browser experience

While Flex does provide an excellent platform to improve the user experience, it is also important to maintain user habits such as back buttons, bookmarks, and autocompletion.

Flex 3 includes a new deep link feature to support back buttons and bookmarks. You can visit labs.adobe.com to learn more. There are many components that can be done automatically. You can use the AutoComplete Input component from Adobe Exchange.

3. Using too many containers causes Flex applications to slow down

Flash Player uses a hierarchical object graph, which is similar to HTML's document object Model (DOM). The deeper the nesting of the container, the longer it takes to render. There is an article in Adobe's Flex developer Center that discusses * practices on Flex performance, including details on the use of containers:

The performance risk of Flex*** comes from the misuse of containers. Nesting too many containers can affect the performance of the application. This is the most serious performance risk faced by Flex developers-but fortunately, it can be completely avoided.

4. Using XML instead of other more optimized protocols causes Flex applications to slow down

Flex provides developers with a variety of options for data transfer between Flex clients and servers, including AMF3, XML, SOAP, and direct HTTP requests. Ward describes the use and performance of these technologies in his census application.

For new projects that use Java at the back end, you should consider BlazeDS. BlazeDS is a recent open source data service product of Adobe, which uses the AMF3 protocol. AMF is a binary transport protocol, which is easy to integrate with Java, and its performance is better than XML. There are AMF open source implementations for all major back-end technologies.

If you do not choose BlazeDS, then you can also choose Hessian. Hessian provides ActionScript/Flex support for the binary web services protocol.

5. Trying to hire Flex developers

It's hard to find experienced Flex developers these days. Flex is now in the same position as Java in the 1990s. Flex developers are already in short supply. This makes it difficult to find experienced Flex developers. However, this creates a good opportunity for Java developers to expand their skills and work on an emerging and interesting technology. Many companies looking for Flex developers have conducted several weeks of Flex training for Java or other web developers directly, and have been very successful. For developers familiar with Web and GUI programming, learning the Flex language and APIs is easy.

6. Overuse of special effects

Developers can easily add special effects through Flash. But make sure the special effects are meaningful and match the context. Otherwise, they will only disgust users. The timing of special effects is also important. The interaction designer can help us decide when we should use special effects and when we should not. The interaction designer can also recommend special effects types, intervals, and the most simplified features for us.

There is a good article on the use of special effects on laair.org:

Most of the special effects are simply too long. They are not only long, but also slow and even offensive. turn it off. If something like this happens to me, I will turn around and leave, because I really hate this kind of waiting.

Don't get me wrong. I'm not against special effects. I just object to special effects that are too long or too much for the purpose. Each special effect can be broken down according to its purpose. Find the purpose of the special effect you want, and then use it.

These are all the contents of this article entitled "what are the misunderstandings in building Flex applications?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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