开发者

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

  • Is there a nice and not much processor consuming way to move all TitleWindow instances within the application visible area when开发者_如何学Python the application been scaled - change it's width or height ?


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
    }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜