1 Reply Latest reply on Aug 23, 2007 6:20 AM by levancho

    how to hide the titlebar of a titlewindow

    jessicajml
      i have implemented a component which is extend the titleWindow, in the
      titleWindow has the titlebar, border ,content,controller bar. but i
      don't want the titlebar to display, so in myTitleWindow, i do the
      follow:

      public class myWindow extends TitleWindow
      {
      // Add the creationCOmplete event handler.
      protected var text:TextArea = new TextArea();

      public function myWindow()
      {
      super();
      addEventListener(FlexEvent.CREATION_COMPLETE,
      creationCompleteHandler);
      }
      private function
      creationCompleteHandler(event:Event):void
      {
      titleBar.setVisible(false);
      }
      }

      but it does not work.
      so i want to know what is my problem and how to hide the titlebar