In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail what MacromediaFlex is in Flex. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Introduction to Flex
MacromediaFlex is a server component used to create information-rich Internet applications. The built-in interface of Flex can be displayed on the client system by the MacromeidaFlash player. The essence of Flex is:
◆ is a XML language (MXML) that describes the application interface.
◆ is an ECMA standard scripting language (ActionScript) that handles user and system events and builds complex data models.
◆ a class library
Real-time service for ◆ runtime
◆ A compiler that generates SWF files from MXML files
MXML
MXML is a XML1.0 language that describes the programming of Flex applications. Each MXML file should start with a XML declaration:
Like other XML languages, MXML contains elements (tags) and attributes and is case-sensitive. The tag name begins with an uppercase letter, is mixed in uppercase and lowercase, and must have a corresponding closing tag:
You can also end tags with no content:
Property begins with lowercase and is mixed in uppercase and lowercase. Attribute must be enclosed in quotation marks.
Except for events such as click or initialize, all properties are treated as text strings by the compiler. If you need to bind data or force the compiler to execute an expression, you can wrap part of the variable in curly braces:
Most attributes can be used as child tags:
Equivalent to:
{myArray}
The MXML file that describes the application must have an Application element that resides outside the other elements:
[otherelements...]
Notice the xmlns attribute, which declares the namespace of the XML. Namespaces allow you to use multiple XML languages in a single document without confusing the same element names in different languages. The ": mx" here is a prefix used in a particular namespace.
Note: the namespace defined here is the standard MXML class library, please include it in each MXML file.
You can place the declaration in any MXML tag; the declaration is valid for all tags nested within that tag. In this series of tutorials, mx is prefixed to the MXML class library.
For more information, see the Flex language reference
ActionScript
ActionScript is an object-oriented scripting language similar to JavaScript and other ECMA specifications. If you have used other object-oriented languages such as JavaScript or Java/C#, you will find that their syntax is very similar. You can embed ActionScript code in a MXML file, or you can import code from a separate external file.
Complete ActionScript reference: Action language reference
MXML class library
Flex contains both visible components such as controls and containers, as well as invisible components such as remote service objects and data models. You can get detailed information in the following introduction.
Runtime service
Flex provides a number of runtime services, such as history control and remote service connection objects. From a development point of view, these services are calls to class libraries.
Compiler
After receiving a request from a browser to access the MXML file, the Flex compiler automatically compiles and generates the corresponding SWF file. The SWF file will be cached until you modify the source MXML file.
This is the end of this article on "what is MacromediaFlex in Flex?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.