[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 =

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 http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/ msgId=137608/stime=1235567809/nc1=4507179/nc2=3848640/nc3=4836036 variable. Just make sure to