开发者

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

开发者 https://www.devze.com 2023-03-11 18:47 出处:网络
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
  • 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

精彩评论

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