Yordan Yanakiev
Yordan Yanakiev

Reputation: 2604

Flex 4 move all TitleWindows instances within the visible area after application change it's width/height?

Upvotes: 0

Views: 250

Answers (1)

Constantiner
Constantiner

Reputation: 14221

You can listen to systemManager's resize event and then iterate all the pop ups the following way (in resize handler):

for (var i:int = 0; i < systemManager.popUpChildren.numChildren; i++)
{
    var popup:DisplayObject = systemManager.popUpChildren. getChildAt(i);
    if (popup is TitleWindow)
    {
        var window:TitleWindow = TitleWindow(popup);
        // Your move operations here
    }
}

Upvotes: 2

Related Questions