ActionScript MXML <mx:> vs <s:>

It looks like I can use components for <mx:>both and <s:>.

So what have more benefits?

+3
source share
3 answers

As other posters noted, the spark (s :) namespace refers to the new components introduced with Flex 4, while the halo / mx (mx :) namespace refers to the older components.

They can be used together, which is necessary, since for all mx components there are no equivalent equivalents (noticeable omissions are DataGrid, Tree, DividedBox, etc.). Some of the motives for the new spark components include: Separation of form from function, which means that the spark components are very skin-friendly. Lighter weight for better performance (you can use s: Group to build your components, rather than mx: Canvas, which is much more efficient since s: Group has no visual characteristics such as padding or border).

: , , /, . , , - ( DropDownLists , mx?) halo/mx , , .

+10

<mx> - , . <s>, , , <s> (Spark) .

+1

The spark namespace is new to Flex 4, it is basically the new version or namespace components, and I think the main goal of spark components is to be light on skin, etc.

You can find out more about them at http://www.adobe.com/devnet/flex/articles/flex4_sparkintro_02.html

+1
source

Source: https://habr.com/ru/post/1759524/


All Articles