Manages pop-ups for all children of a root component (usually, all children of a Stage).

Available since

1.0.0

.

See:

Variables

read onlypopUpCount:Int

The current number of pop-ups.

Available since

1.0.0

.

root:DisplayObjectContainer

The container where pop-ups are added. If not set manually, defaults to the stage.

Available since

1.0.0

.

overlayFactory:Void ‑> DisplayObject

A function that returns a display object to use as an overlay for modal pop-ups.

Available since

1.0.0

.

Methods

@:value({ isCentered : true, isModal : true })addPopUp (popUp:DisplayObject, isModal:Bool = true, isCentered:Bool = true, ?customOverlayFactory:Void ‑> DisplayObject):DisplayObject

Adds a pop-up.

Available since

1.0.0

.

centerPopUp (popUp:DisplayObject):Void

Centers a pop-up.

Available since

1.0.0

.

isModal (target:DisplayObject):Bool

Determines if a pop-up is modal.

Available since

1.0.0

.

isPopUp (target:DisplayObject):Bool

Determines if a display object is a pop-up.

Available since

1.0.0

.

isTopLevelPopUp (target:DisplayObject):Bool

Determines if a display object is above the highest modal overlay. If there are no modals overlays, determines if a display object is a pop-up.

Available since

1.0.0

.

removeAllPopUps ():Void

Removes all pop-ups that have been added.

Available since

1.0.0

.

removePopUp (popUp:DisplayObject):DisplayObject

Removes a pop-up.

Available since

1.0.0

.