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 read the Flex configuration file

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces how to read the Flex configuration file, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

How to read Flex configuration files when Flex is running

Introduction to Flex

AdobeFlex is a presentation server and application framework designed to meet the needs of enterprise programmers who want to develop RichInternet applications. RIA combines the responsiveness and richness of desktop software with the breadth of Web applications to provide a better end-user experience. Flex represents that the server provides standards-based, declarative programming methods and processes, as well as run-time services for developing and deploying the presentation layer of rich client applications.

Flex developers use an intuitive XML-based language to define rich user interfaces; the language is translated by Flex servers into smart client applications that run in the ubiquitous Flash runtime environment. Go back to the top Flex to solve what problem? The user experience of many Web applications is not satisfactory, resulting in high abandonment rates, high training costs and wasted investment. Flex provides a new technology to solve these problems. Before the advent of Flex, enterprise developers trying to solve user interface problems were often frustrated by the limitations of HTML. HTML was originally designed to browse static documents and is not suitable for providing content-rich, interactive, and data-driven applications.

Flex provides a way for these programmers to develop applications that combine the strong interactivity and rich content of desktop software with the breadth of Web; programmers can use their preferred programming methods and development processes. This method also meets the requirements of infrastructure and integration. Flex allows application developers to describe the user interface layout and UI controls of the application and to bind data using a standards-based programming model that developers are familiar with.

Read Flex configuration file

1. Use Model tags

Xml: Kevin 4325d543d32ab34ddd43

Just read it directly in the applicationComplete event.

Alert.show (config.username+ ":" + config.psw)

two。 Use URLLoader.

Varloader:URLLoader=newURLLoader (newURLRequest ("asset/config.xml"); loader.addEventListener (Event.COMPLETE,handleCompleted); privatefunctionhandleCompleted (event:Event): void {varloader:URLLoader (event.target); varconfigXML:XML=XML (loader.data); Alert.show (configXML.username) } Thank you for reading this article carefully. I hope the article "how to read Flex configuration File" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and follow 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