[flexcoders] TitleWindow and CloseButton

2009-02-25 Thread Cato Paus
Wath I want help with is: are there a another way to do this, private function thisCreationComplete(event:FlexEvent):void {trace('OverWriteWarning::thisCreationComplete'); for(var i:int = 0; titleBar.numChildren >i; i++){ if(titleBar.getChildAt(i) is Button) { var butt:Button = titleBar.getC

RE: [flexcoders] TitleWindow and CloseButton

2009-02-25 Thread Yves Riel
The button of a title window is located in the Panel component. You can directly access it thought the mx_internal::closeButton variable. Just make sure to i