v5_07 Implementing skin parts 了解皮肤的组成部分
ex5_07
这部分主要讲
皮肤的部件内容及如何使用它来彻底地改变Spark组件的外观和感觉
注意皮肤中Rect,Path以及id为
titleDisplay,contentGroup的用法
contentGroup为必须的,它表示实际的内容,titleDisplay为标题
<s:Rect radiusX="4" radiusY="4" height="461" width="100%" right="10"> <s:fill> <mx:SolidColor id="panelSkin" color="#E8E8E8"/> </s:fill> </s:Rect> <s:Path winding="nonZero" data="M 0.016 0.012 L 0.016 23.354 L 287.419 23.354 L 287.408 12.012 C 287.408 5.385 282.035 0.012 275.408 0.012 L 0.016 0.012 Z" rotation="90" top="0" bottom="0" right="0"> <s:fill> <s:SolidColor id="headerSkinColor"/> </s:fill> </s:Path> <s:Label id="titleDisplay" lineBreak="explicit" left="10" right="8" top="2" height="30" fontWeight="bold" fontSize="12" rotation="90" color="#FFFFFF"/> <s:Group id="contentGroup"> </s:Group>