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 mainly introduces what are the new features of FlexSDK4. It is very detailed and has a certain reference value. Friends who are interested must finish reading it!
New features of FlexSDK4
New features of FlexSDK4 I. theme
Before FlashBuilder4, the default theme for Adobe was Halo, while starting with FlashBuilder4, the default theme became Spark. FlashBuilder4 contains nine default themes, including two Spark themes and seven Halo themes.
There are two sets of controls in FlashBuilder4: the previous mx.* and the newly added spark.*.
How does ◆ choose a Flex theme for the project?
Create a new Flex project, right-click the project, select "Properties", select "Flex theme" on the left side of the pop-up dialog box, and then you can see the Flex theme that comes with FlashBuilder. We see that there are two sets of Flex themes, namely: Spark and Halo. You can delete the theme, import the theme operation, etc., after the selection, click "OK", and then switch the Flex theme for the project.
Note: 1. The default location of the theme is in the FlashBuilder4 installation directory / sdks/4.0.0/frameworks/themes/
two。 You can see the configuration of the project theme in the .actionScriptProperties file in the newly created Flex project.
◆ Flex topic in depth
We can take a look at what's in the theme package, such as renaming the wireframe.swc in the theme package to wireframe.zip and decompressing it. After decompression, you can see the following files.
Obviously, default.css is the styling of the theme, and we can modify it to change the configuration of the theme.
New features of FlexSDK4 II. Layout
In Flex4, the layout has been stripped out of the control. In this way, we can layout the controls more flexibly, such as changing the layout of the container from horizontal to vertical at run time. This is very difficult to achieve in Flex3.
In Flex4's spark package, there is no original Hbox,Vbox,Box and Canvas container, replaced by Group, another new container is SkinnableContainer, the difference between it and Group is that we can define skin, Group can not define skin, but has higher execution efficiency and makes the application smaller.
In addition to the change in the layout of the control, the scroll bars in Flex4 are also stripped out of the control, and the default container does not have scroll bars and virtualization.
New features of FlexSDK4 III. Style
In Flex4, support for Css has taken a qualitative leap. Before Flex4, Flex's support for Css was very awkward, compared to HTML's powerful Css function, Flex can only be said to inherit a very superficial part.
Support for namespaces has been added to the new styling in Flex4, which focuses on styling controls in different control packages. For example:
@ namespaces "library://ns.adobe.com/flex/spark"; @ namespacemx "library://ns.adobe.com/flex/halo"; that's all of the article "what are the new features of FlexSDK4?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.