Creates the popup via factory/reflection

C# | Visual Basic | Visual C++ |
public DisplayObject CreatePopup( Type popupType, DisplayObjectContainer parent, bool modal, bool centered )
Public Function CreatePopup ( _ popupType As Type, _ parent As DisplayObjectContainer, _ modal As Boolean, _ centered As Boolean _ ) As DisplayObject
public: DisplayObject^ CreatePopup( Type^ popupType, DisplayObjectContainer^ parent, bool modal, bool centered )

- popupType (Type)
- The popup class for instantiation
- parent (DisplayObjectContainer)
- Parent component (for position calculations)
- modal (Boolean)
- Is this a modal popup
- centered (Boolean)
- Should popup be centered
