Flex viewer parsing (2) Flex viewer source code package structure

Source: Internet
Author: User

The flex viewer source code is a standard flex project in Flash builder and can be directly imported to flash builder. The following describes each part of the source code package structure, as shown in the package structure.

1) SRC root directory: Contains index.mxml=defaults.css and config. xml. Index. mxml is the system entry point, that is, the local ;ults.css where flex applicationis created is referenced in index. mxml; config. XML is the default configuration file.

2) apps: the flex viewer is well designed to make it highly configurable, including basemap, business layer, various Server resources, and even user experience. The content in the apps package is the configuration files of different application systems and various required resources. Flex viewer can set the configuration file to be loaded in the URL parameter. For example, add the configuration file information "? Config = apps/zh_cn/config. xml ", flex viewer loads the config. xml file under apps/zh_cn and configures the entire flex Viewer System Based on the information in the configuration file. That is to say, flex viewer can display different application systems according to different configuration files.

3) assets. Images: The Directory of various images and flash resources used by the flex viewer.

4) COM. ESRI. Viewer: the content of this package and its sub-package is the main program of flex viewer. The "main program" mentioned here is relative to the widget. The main program implements the basis of the widget, the management of the widget, and all functions except the custom widget, this part of content will be introduced in the following section.

5) widgets: All widgets in flex viewer are in this package. Widgets are developed based on modules. module is a solution provided by Adobe to solve the problem of excessive FLEX system size. A large FLEX system can use modules to separate the system, this reduces the volume to be loaded during system initialization. Flex viewer divides business functions by Widgets. Each widget is a relatively complete and independent component, and each widget can perform one or more related operations independently.

6) libs: This is the flash builder flex project to store library files directory, agslib-2.3-2011-03-01.swc is AGS flex API 2.3 library files. More library files may be used according to different business needs, so these library files will be stored in this directory.

7) locale: Flex Viewer supports internationalization. All attribute files required for internationalization are stored in this directory. In flash builder, you can specify the compilation parameters to determine which language to use, as shown in:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.