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 knowledge points of Flex?

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

Share

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

This article mainly introduces what are the knowledge points of Flex, which can be used for reference by interested friends. I hope you will gain a lot after reading this article.

Introduction to Flex

Flex usually refers to AdobeFlex, which was first released by Macromedia in March 2004. based on its proprietary MacromediaFlash platform, it is a series of technology combinations that support the development and deployment of RIA (RichInternetApplications). Another meaning of Flex is a tool that generates scanners that can recognize lexical patterns in text.

Lexical analyzer generator Flex

Flex (fastlexicalanalysergenerator) is another alternative to Lex. It is often used with the free software Bison parser generator. Flex was originally written by VernPaxson in C language in 1987.

Flex is described in the Flex manual as follows:

"Flex is a tool for generating scanners that can recognize lexical patterns in text. Flex reads in the given input file and, if no file name is given, reads from standard input to get a description of the scanner that needs to be generated. This description is called a rule and consists of regular expressions and C code pairs. The output of Flex is a C code file-- lex.yy.c-- where the yylex () function is defined. Compile the output file and link with the-lfl library to generate an executable file. When the executable is run, it analyzes the input file to find a match for each regular expression. When a match is found, it executes the C code associated with the regular expression. "

A similar lexical analyzer generator in the C++ language is Flex++, included in the Flex package.

Flex is not a GNU project, but GNU wrote a manual for Flex.

Flex application development steps

The following is derived directly from Flex2.0Beta3 's help file:

◆ uses a system predefined component (windows, buttons, etc.) to define a development interface.

◆ organizes and arranges components, and now user-defined interface design.

◆ uses styles and themes to define visible designs.

◆ adds dynamic actions, such as interaction between applications.

◆ defines and connects to the last data service as needed.

◆ generates a SWF file that runs in the Flash player from the source code.

Technical Framework of Flex

Flex technology includes the following main technical frameworks:

1. XML language (MXML) that describes the application interface

two。 Scripting language (ActionScript) that conforms to the ECMA specification, handles user and system events, and builds complex data models

3. A basic class library

4. Real-time services at run time

5. A compiler that generates swf files from MXML and ActionScript files.

Thank you for reading this article carefully. I hope the article "what are the knowledge points of Flex" shared by the editor will be helpful to you. 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