# How do I close an empty movie clip?

**URL:** <https://forum.kirupa.com/t/how-do-i-close-an-empty-movie-clip/189876>\
**Category:** Uncategorized\
**Created:** [June 6, 2006, 9:45pm UTC](https://forum.kirupa.com/t/how-do-i-close-an-empty-movie-clip/189876 "2006-06-06T21:45:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Revolt](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@Revolt](https://forum.kirupa.com/u/Revolt)\
**Post date:** [June 6, 2006, 9:45pm UTC](https://forum.kirupa.com/t/how-do-i-close-an-empty-movie-clip/189876/1 "2006-06-06T21:45:30Z")

</div>

heres the code

```auto
 
on(release){
_root.createEmptyMovieClip("newWindow", 3);
_root.newWindow.attachMovie("newmovie","newmovie1", 3);
_root.newWindow._x=250;
_root.newWindow._y=176.8;
}

```

and it is placed on a button. but I need to have an ‘x’ on the empty movieclip or the newmovie that was loaded to close the Clip that was loaded. because I have a few buttons that will load different empty movie clips and I don’t want to have 2 different movieClips in the same place overlapping eachother or 3 or 4 just sitting there.  
I don’t know how to close Empty movie clips. any help would be appreciated. 🙂

---

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [June 6, 2006, 10:07pm UTC](https://forum.kirupa.com/t/how-do-i-close-an-empty-movie-clip/189876/2 "2006-06-06T22:07:05Z")

</div>

By close, do you just mean to remove that empty clip you created? if so use;

[AS]  
\_root.newWindow.removeMovieClip();  
[/AS]

---

<div class="post-metadata">

**Author:** ![Revolt](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@Revolt](https://forum.kirupa.com/u/Revolt)\
**Post date:** [June 6, 2006, 11:26pm UTC](https://forum.kirupa.com/t/how-do-i-close-an-empty-movie-clip/189876/3 "2006-06-06T23:26:11Z")

</div>

[COLOR=black][FONT=Verdana]yeah, like have it disappear and only re-appear when you click on the button again. [/FONT][/COLOR]

thanks
