# Creating a new window doesn't add to openedWindow array

**URL:** <https://forum.kirupa.com/t/creating-a-new-window-doesnt-add-to-openedwindow-array/326693>\
**Category:** flash\
**Created:** [January 5, 2012, 6:05pm UTC](https://forum.kirupa.com/t/creating-a-new-window-doesnt-add-to-openedwindow-array/326693 "2012-01-05T18:05:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [January 5, 2012, 6:05pm UTC](https://forum.kirupa.com/t/creating-a-new-window-doesnt-add-to-openedwindow-array/326693/1 "2012-01-05T18:05:57Z")

</div>

So I start my Air app and trace the length of

```auto
NativeApplication.nativeApplication.openedWindows

```

I get 1, obviously the main window.

So I add a new NativeWindow and trace the length of that array again, and I get 1 again.

```auto
var newWindow = new NativeWindow(options);

```

Is this normal behavior?

I thought I could get all opened windows in the array.
