
TUTORIALS POINT
Simply Easy Learning Page 37
Enter Package as com.tutorialspoint.skin, name as GradientBackgroundSkin and choose host component as
existing flex BorderContainer control spark.component.BorderContainer.
Now you've created a skin for a BorderContainer. Modify content of the mxml skin
filesrc/com.tutorialspoint/skin/GradientBackgroundSkin.mxml. Update fill layer as follows:
<!-- fill -->
<s:Rect id="backgroundRect" left="0" right="0" height="100%" top="0">
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0x888888" ratio="0.2"/>
<s:GradientEntry color="0x111111" ratio="1"/>
</s:LinearGradient>
</s:fill>
</s:Rect>
Step 2: Apply skin
You can apply skin over a component using two ways
Commentaires sur ces manuels