[Flex] flex SDK 4 (gumbo) namespace Overview

Source: Internet
Author: User
See http://www.k-zone.cn/zblog/post/flash-builder-gumbo-namespace-spark-halo.html for details
This article is the third article in Flash Builder 4 beta (gumbo) UI and new functions experience. It focuses on the namespace added by Flex SDK 4 (gumbo ).

As we all know, flex SDK 4 (gumbo) has added some namespaces, please refer to the following:


Xmlns: FX = "http://ns.adobe.com/mxml/2009"

Xmlns: MX = "Library: // ns.adobe.com/flex/halo"

Xmlns: S = "Library: // ns.adobe.com/flex/spark"

1. xmlns: FX = "http://ns.adobe.com/mxml/2009"
Defines some top-level methods, global functions, and global constants of top-level ActionScript 3.0.

For example, some common data types include number, Int, Boolean, array, and string.

The link in Adobe Flex 4 beta Language Reference is described in detail.

The contents of this namespace are all defined in the sdks \ 4.0.0 \ frameworks \ mxml-2009-manifest.xml under the flash builder installation directory.


2. xmlns: MX = "Library: // ns.adobe.com/flex/halo"
Friends who have used flex SDK 2 and flex SDK 3 will not be unfamiliar. The content in this namespace is MX. * For all the following content, please note that halo is named as the default CSS style in flex SDK 2 and flex SDK 3.

The contents of this namespace are all defined in the sdks \ 4.0.0 \ frameworks \ halo-manifest.xml under the flash builder installation directory.

3. xmlns: S = "Library: // ns.adobe.com/flex/spark"
This is the new component library in flex SDK 4 (gumbo. It contains all spark. * In Flex SDK 4 (gumbo) and some content in flashx. * packages (Text framework class)

The contents of this namespace are all defined in the sdks \ 4.0.0 \ frameworks \ spark-manifest.xml under the flash builder installation directory.

Some of the content that I think is necessary to understand:

1. xmlns: MX = "Library: // ns.adobe.com/flex/halo" and xmlns: S = "Library: // ns.adobe.com/flex/spark" are classified, while xmlns: FX = "http://ns.adobe.com/mxml/2009" is the top-level content of ActionScript 3.0. That is to say, if only halo is used in a project, the spark definition can be removed from the application. (And vice versa)


2. xmlns: MX = "Library: // ns.adobe.com/flex/halo" and xmlns: S = "Library: // ns.adobe.com/flex/spark", some of which are public, please pay attention to this point (I guess it is to migrate flex SDK 2 and flex SDK 3 to flex SDK 4 (gumbo) the process is more convenient .)


3. xmlns: FX = "http://ns.adobe.com/mxml/2009" retains some of the top-level packages in the flex SDK 2 and flex SDK 3 era, some new labels are added, such: <declarations> and <designlayer> <library> <private> <reparent>


4. When you need to define a component that exists in both xmlns: MX = "Library: // ns.adobe.com/flex/halo" and xmlns: S = "Library: // nsadobe.com/flex/spark" or has the same meaning, adobe recommends spark instead of Halo.


PS: Part of this article is from two Adobe documents, using Adobe Flex 4 and Adobe Flex gumbo preview release features and Migration Guide.

Appendix:

Using Adobe Flex 4: http://bit.ly/9u5D5

Adobe Flex gumbo preview release features and Migration Guide: http://bit.ly/180oH9

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.