Change Titlewindow close button

Posted by Cameigons on Stack Overflow See other posts from Stack Overflow or by Cameigons
Published on 2009-10-01T11:04:10Z Indexed on 2010/04/06 19:43 UTC
Read the original article Hit count: 360

Filed under:
|
|

I'm working with Flex 3.4 SDK.

I need to change the default close button image from a TitleWindow. So what I'm doing is defining a CSS selector, like this:


TitleWindow{
    close-button-skin: Embed('assets/close.png');
    border-color: #FFFFFF;
    corner-radius: 10;  
    closeButtonDisabledSkin: ClassReference(null);
    closeButtonDownSkin: ClassReference(null);
    closeButtonOverSkin: ClassReference(null);
    closeButtonUpSkin: ClassReference(null);
}

The problem is: the result image is totally squeezed beyond recognition. Probably because the image dimensions are 55x10 pixels (much wider than the default closebutton square-like dimensions) and flex forces it to fit that size.

Would anyone know how to go about fixing that?

© Stack Overflow or respective owner

Related posts about flex

Related posts about flex3