Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想参考当前的活动窗口。例如,应用程序上方的 1 个窗口,我如何确定哪个窗口当前处于活动状态?
我自己得到了答案。请参阅以下代码以获取活动窗口。
var activeWindow:NativeWindow = mx.core.Application.application.nativeApplication.activeWindow; var parent:Sprite = (activeWindow.stage.getChildAt(0) as WindowedSystemManager).document as Sprite;