PaneStylesExample, action button over titlebar
have good day ...
hi ...
I have checked your example PaneStylesExample.mxml, in your code or script you defined one TitleBar ,
titleBarStyleName="titleBarFigure1"
styleName="figure1"
width="200" height="200" showCloseButton="true" showMaximizeButton="true" showTitleBar="true">
.
I like to do an acction, when i press cliclk at the closeButton or MaximizeButton, how do i do.
i used your function init(), and append one line.
private function init():void{
var placement:String = titleBarPlacement.selectedItem.data;
pane1.titleBarPlacement = placement;
pane2.titleBarPlacement = placement;
pane3.titleBarPlacement = placement;
pane4.titleBarPlacement = placement;
pane5.titleBarPlacement = placement;
pane6.titleBarPlacement = placement;
pane7.titleBarPlacement = placement;
/* I append this line*/
pane1.titleBar.addEventListener(TitleBarEvent.CLOSE_BUTTON_CLICK,close);
}
private function close():void{
Alert.show('Hello');
}
but this dont work , i press
I hope you hunderstand me
thank you.

Joined: 2007-08-30