I am new to flex and i am trying to create a title window with no padding whatsoever on the sides. In the adobe documentation http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/containers/TitleWindow.html it says that the title window has a 4px padding. I was wondering if i could get rid of it by overriding the updateDisplayList function and set the padding to 0 (I have been trying this but I cant seem to find the right attribute to set). Basically what i want to do is to have a button on the bottom left corner of the title window and the edge of the button should be 0px from the border of the window.
PS: I only need to do this for title window. There is probably another way of doing it with a Panel or some other component which im not interested in.
The link to the
TitleWindowdocs has a styles section. It has styles forpaddingTop,paddingBottom,paddingLeft, andpaddingRight.CSS styles are set a little differently in Actionscript versus MXML. Since css styles are not properties of the object, you have to use the
setStyle()method in Actionscript. You can also use a style sheet.MXML:
Actionscript: