# Animating out into a removeMovieClip

**URL:** <https://forum.kirupa.com/t/animating-out-into-a-removemovieclip/190690>\
**Category:** Uncategorized\
**Created:** [June 13, 2006, 11:18pm UTC](https://forum.kirupa.com/t/animating-out-into-a-removemovieclip/190690 "2006-06-13T23:18:00Z")\
**Posts on this page:** 1\
**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 13, 2006, 11:18pm UTC](https://forum.kirupa.com/t/animating-out-into-a-removemovieclip/190690/1 "2006-06-13T23:18:00Z")

</div>

![](http://img.photobucket.com/albums/v520/Theodis/spb_1.png)

It worked. but I found that just having a button that closes a page instantly is to [COLOR=black][FONT=Verdana]abrupt[/FONT][/COLOR] and I think I need to have it animate out before the submenu page closes.

I am goin to make up the following code to help explain what I am hoping to achieve.

```auto
I was wondering if I could have something like this:
newmovie1.xbutton.onPress = function(){
      gotoAndPlay(12);
}
[COLOR=blue]if newmovie1.WBF1 = frame 23(){
_root.newWindow.removeMovieClip();
}[/COLOR]

```

I would like to try to have it where when you click on xbutton it plays the ending animation, but when the movie clip reaches a certain frame it then removes the MovieClip. (in this case frame 23) is this possible?

![](http://img.photobucket.com/albums/v520/Theodis/spb_2.jpg)
