Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex Flex 4在应用程序更改后将所有TitleWindow实例移动到可见区域内';宽度/高度? 当应用程序被缩放时,是否有一种很好且不消耗太多处理器的方法来移动应用程序可见区域内的所有TitleWindow实例-更改其宽度或高度_Apache Flex_Scale - Fatal编程技术网

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;iwidth)window.x=width-window.width;}}}订阅应用程序的调整大小。我给出的代码只是一个想法。请在此处添加您自己的个性:)无法找到与systemManager一起检查所有实例的方法:|有其他建议吗?有什么困难吗?什么步骤是不能复制的?我从TitleWindow类扩展而来,它处理我必须监视的所有事情。我用“if(popup是MyTitleIndowClass){…}检查,但它从不触发。
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
    }
}