Home > Flex, Spark > Add a line or stroke to a Spark skin

Add a line or stroke to a Spark skin

This is how you add a line to your Flex Spark skin without using a Rectangle (Rect) its strokes.

In this case a horizontal line will be drawn on the bottom of your skin.

<s:Line left="0"
        right="0"
        bottom="1">
    <s:stroke>
        <s:SolidColorStroke color="0xFAFAFA"
                            weight="1"/>
    </s:stroke>
</s:Line>
Categories: Flex, Spark Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.
Security Code: