# Unloading a movie clip

**URL:** https://forum.kirupa.com/t/unloading-a-movie-clip/8086
**Category:** Uncategorized
**Created:** [November 13, 2002, 3:31pm UTC](https://forum.kirupa.com/t/unloading-a-movie-clip/8086 "2002-11-13T15:31:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Chivo01](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@Chivo01](https://forum.kirupa.com/u/Chivo01)
#### Post date: [November 13, 2002, 3:31pm UTC](https://forum.kirupa.com/t/unloading-a-movie-clip/8086/1 "2002-11-13T15:31:51Z")

</div>

I have a mc playing on a level that I want to load another mc on to when I press a button, how do I get the first mc to play an animation that looks like it did when it loading on. The animation is a motion tween.

:cowboy:

---

<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: [November 14, 2002, 11:22am UTC](https://forum.kirupa.com/t/unloading-a-movie-clip/8086/2 "2002-11-14T11:22:52Z")

</div>

Hi,

Send the playhead to that frame and play.

If the second one replacing the first one?  
if so:

BUTTON:  
on(press){  
pressed=1;  
yourContainer.gotoAndPlay(“startingFrame”);  
}  
FINAL FRAME OF ANIMATION:  
if(pressed){  
this.loadMovie(“nameOfJpg.jpg”);  
pressed = 0;  
}

if not:

BUTTON:  
on(press){  
yourContainer.gotoAndPlay(“startingFrame”);  
yourSecondContainer.loadMovie(“nameOfJpg.jpg”);  
}

Cheers

SHO
