What events are generated when opening TitleWindow with PopUpManager.addPopUp ()?

Basically, I'm trying to open / close TitleWindow using PopUpManager.addPopUp () and PopUpManager.removePopUp () when reusing a single instance of TitleWindow. I noticed that createComplete () is called only once for TitleWindow, even if I open it several times and wondered what events I should listen for subsequent pop-ups.

+3
source share
1 answer

creationComplete( FlexEvent.CREATION_COMPLETE) is launched only when the component is created; this happens only once since you are reusing the same component. Listen to events added( Event.ADDED) or addedToStage( Event.ADDED_TO_STAGE) if you want to do something every time a display object is displayed.

+4
source

Source: https://habr.com/ru/post/1734226/


All Articles