I got this to work for me, but I did it in the CSS style sheet and
used the styleName property. I did this with a SWF though.
.titlePanelStyle {
closeButtonUpSkin: Embed(source ="../flash/CloseAssets.swf",
symbol="close_up");
closeButtonOverSkin: Embed(source ="../flash/CloseAssets.swf",
symbol="close_over");
closeButtonDownSkin: Embed(source ="../flash/CloseAssets.swf",
symbol="close_down");
closeButtonDisabledSkin: Embed(source ="../flash/CloseAssets.swf",
symbol="close_up");
}
It could be that the SWF is scaling, but my close button size in the
FLA is actually 18 x 18.
Michael Ritchie
AOL Xdrive
--- In [email protected], "graysonpierce" <[EMAIL PROTECTED]>
wrote:
>
> I have three 16x16 png images that I would like to use as the close
> button of a titlewindow instead of the one provided by Flex (yes, I'm
> that particular).
>
> I set the following properties on the titlewindow but the image seems
> to be scaled bigger that 16x16.
>
> closeButtonDownSkin="@Embed(source='close_down.gif')"
> closeButtonOverSkin="@Embed(source='close_over.gif')"
> closeButtonUpSkin="@Embed(source='close_up.gif')"
>
> I've tried every combination of scale-9 tags per the documentation
>
(http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000976.html)
> to no avail.
>
> Thank you.
>