# How to make the existing window to be closed and open up a new one?

**URL:** <https://forum.kirupa.com/t/how-to-make-the-existing-window-to-be-closed-and-open-up-a-new-one/6616>\
**Category:** Uncategorized\
**Created:** [October 12, 2002, 2:19am UTC](https://forum.kirupa.com/t/how-to-make-the-existing-window-to-be-closed-and-open-up-a-new-one/6616 "2002-10-12T02:19:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mirinl](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@mirinl](https://forum.kirupa.com/u/mirinl)\
**Post date:** [October 12, 2002, 2:19am UTC](https://forum.kirupa.com/t/how-to-make-the-existing-window-to-be-closed-and-open-up-a-new-one/6616/1 "2002-10-12T02:19:00Z")

</div>

recently i’m thinking of this way of the nagivation to put in my flash site. When the user clicks for a new link, the existing draggable window will be closed and open up a new one for the 2nd link. How to write the scripts for it?

thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 12, 2002, 4:49am UTC](https://forum.kirupa.com/t/how-to-make-the-existing-window-to-be-closed-and-open-up-a-new-one/6616/2 "2002-10-12T04:49:03Z")

</div>

Try. External swfs?  
Or Different parts of a Movieclip.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 12, 2002, 8:30pm UTC](https://forum.kirupa.com/t/how-to-make-the-existing-window-to-be-closed-and-open-up-a-new-one/6616/3 "2002-10-12T20:30:52Z")

</div>

I know how to open up a new draggable window, but the thing is how to make it to detect if there’s any existing window and send command to close it off first before a new window is coming?
