Apache flex Flex 4在应用程序更改后将所有TitleWindow实例移动到可见区域内';宽度/高度? 当应用程序被缩放时,是否有一种很好且不消耗太多处理器的方法来移动应用程序可见区域内的所有TitleWindow实例-更改其宽度或高度
您可以收听Apache flex Flex 4在应用程序更改后将所有TitleWindow实例移动到可见区域内';宽度/高度? 当应用程序被缩放时,是否有一种很好且不消耗太多处理器的方法来移动应用程序可见区域内的所有TitleWindow实例-更改其宽度或高度,apache-flex,scale,Apache Flex,Scale,您可以收听systemManager的resize事件,然后以以下方式迭代所有弹出窗口(在resize handler中): for(变量i:int=0;i
systemManager
的resize
事件,然后以以下方式迭代所有弹出窗口(在resize handler中):
for(变量i:int=0;i
不起作用:`systemManager.addEventListener(Event.RESIZE,onSystemManagerSize);私有函数onSystemManagerSize(e:Event):void{for(var i:int=0;ifor (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
}
}