Is it possible to create skin components in MXML using the Spark component architecture?

There are many examples of creating skin components in AS3 using the new Spark component architecture, but I have not yet found such examples using MXML.

Basically, I mean the definition of parts of the skin and skin conditions. It seems that SkinPart metadata should be associated with properties and, as such, cannot be used in MXML, is this correct?

+3
source share
1 answer

As far as I can tell, this is not possible because, as you correctly pointed out, there is no way to assign property level metadata to MXML.

- MXML , Skinning, .

, , MXML , .

.:

<!-- labelDisplay has a value -->
<s:Label id="labelDisplay" />

[SkinPart]
public var labelDisplay:Label; // labelDisplay == null;

, <fx:Script />, , , .

+3

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


All Articles