상세 컨텐츠

본문 제목

Use css to style a custom spark skin in Flex 4

FLEX

by 코드공작소 2010. 4. 16. 18:06

본문

반응형

http://seanhess.net/posts/flex_skins_and_styles


/** OverlaySkin.mxml**/
<s:Rect left="0" right="0" top="0" bottom="0">
        <s:fill>
            <s:SolidColor color="{getStyle('backgroundColor')}" alpha="{getStyle('backgroundAlpha')}"/>
        </s:fill>
</s:Rect>

/** styles.css **/
.overlay {
    background-color: #000000;
    background-alpha: 0.7;
    skinClass: ClassReference("skins.OverlaySkin");
}
반응형

'FLEX' 카테고리의 다른 글

[flex4] custom Spark item renderer  (0) 2010.04.29
Adobe Illustrator CS5의 새로운 기능  (0) 2010.04.23
[Flex4] spark Label Tip  (0) 2010.02.16
[Flex4] autoDrawBackground="false"  (0) 2010.02.10
columnChart GridLines Style  (0) 2010.02.01

관련글 더보기