Packagecom.flextoolbox.containers
Classpublic class PopUpInitializer
InheritancePopUpInitializer Inheritance flash.events.EventDispatcher
Implementsmx.core.IMXMLObject

Adds a set of controls to the PopUpManager upon initialization. Useful for things like dialogs that must be made into popups immediately when an MXML document is initialized.

Default MXML Propertycontrols


Example
The following example adds a TitleWindow to the PopUpManager.
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      xmlns:toolbox="http://www.flextoolbox.com/2006/mxml">
      <toolbox:PopUpInitializer>
          <mx:TitleWindow title="An Example Pop-Up"
              x="50" y="50" width="200" height="200"/>
      </toolbox:PopUpInitializer>
  </mx:Application>
  



Public Properties
 PropertyDefined by
  controls : Array
The UIComponent controls to be added to a layout container on the PopUpManager.
PopUpInitializer
  controlsInitialized : Boolean
[read-only] Indicates whether the controls have been added to the PopUpManager.
PopUpInitializer
Public Methods
 MethodDefined by
  
Constructor.
PopUpInitializer
  
cleanup():void
Removes the initialized children from the PopUpManager.
PopUpInitializer
Property detail
controlsproperty
controls:Array  [read-write]

The UIComponent controls to be added to a layout container on the PopUpManager.

Implementation
    public function get controls():Array
    public function set controls(value:Array):void

Throws
— Controls may not be added after the PopUpInitializer has initialized.
controlsInitializedproperty 
controlsInitialized:Boolean  [read-only]

Indicates whether the controls have been added to the PopUpManager.

This property can be used as the source for data binding.

Implementation
    public function get controlsInitialized():Boolean
Constructor detail
PopUpInitializer()constructor
public function PopUpInitializer()

Constructor.

Method detail
cleanup()method
public function cleanup():void

Removes the initialized children from the PopUpManager.