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
}
}
精彩评论