假设我有一个窗口组件名为 My CustomWindow 。 然后我会创建新窗口 :
var newWindow:myCustomWindow = new myCustomWindow();
newWindow.open();
我的CustomWindow拥有公共财产 名为我的财产。
How to access myCustomWindow from NativeWindow? For example, how to do it in this loop:
for (var i:int = 0; i < NativeApplication.nativeApplication.openedWindows.length; i++)
{
if( NativeApplication.nativeApplication.openedWindows[i].myProperty == 25)
{
NativeApplication.nativeApplication.openedWindows[i].close();
}
//error, cause NativeWindow doesn t have myProperty
//how to access myCustomWindow.myProperty of this NativeWindow ?
}