Add control to TitleWindow : TitleWindow « Container « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Container » TitleWindowScreenshots 
Add control to TitleWindow
Add control to TitleWindow
     

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

  <mx:Script>
  

    import mx.managers.PopUpManager
    import mx.containers.TitleWindow;
    import mx.controls.TextArea;

    private var _window:TitleWindow;

    private function showWindow(event:MouseEvent):void {
      var textArea:TextArea = new TextArea(  );
      textArea.text = "this is a test";
      textArea.height = 200;
      _window = TitleWindow(PopUpManager.createPopUp(this, TitleWindow));
      _window.addChild(textArea);
    }


  </mx:Script>

  <mx:Button id="button" label="Show Window" click="showWindow(event)" />

</mx:Application>

   
    
    
    
    
  
Related examples in the same category
1.Add close event listener for TitleWindowAdd close event listener for TitleWindow
2.Add Mouse Down listener to TitleWindowAdd Mouse Down listener to TitleWindow
3.Adding mouse event to Panel and TitleWindowAdding mouse event to Panel and TitleWindow
4.Creates a TitleWindow container inside a Panel container.Creates a TitleWindow container inside a Panel container.
5.Resize TitleWindow with TransitionResize TitleWindow with Transition
6.Change TitleWindow position and size in stateChange TitleWindow position and size in state
7.Make TitleWindow to show Close buttonMake TitleWindow to show Close button
8.Add close handler to TitleWindowAdd close handler to TitleWindow
9.Top level TitleWindow tag
10.TitleWindow Title, close button, position, border color and border alphaTitleWindow Title, close button, position, border color and border alpha
11.Add button to window through ActionScriptAdd button to window through ActionScript
w___ww.__j___av_a_2___s__.__co_m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.