# Unloading dynamic movie clip--help please?!

**URL:** <https://forum.kirupa.com/t/unloading-dynamic-movie-clip-help-please/209808>\
**Category:** Uncategorized\
**Created:** [December 12, 2006, 3:51pm UTC](https://forum.kirupa.com/t/unloading-dynamic-movie-clip-help-please/209808 "2006-12-12T15:51:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![popstalin](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@popstalin](https://forum.kirupa.com/u/popstalin)\
**Post date:** [December 12, 2006, 3:51pm UTC](https://forum.kirupa.com/t/unloading-dynamic-movie-clip-help-please/209808/1 "2006-12-12T15:51:37Z")

</div>

I’m loading jpg’s externally into a dynamically created movie clip that then get clicked on to show a larger image. I’d like to be able to click on that MC/larger image to close it once it’s loaded. Here’s the code I’m using to create the MC and for the life of me can’t figure out how to do it after extensive searching on the subject. Basically I’m wanting to go back to the “pre-click” state of the movie when it first loads before any clicking happens.

```auto
_root.createEmptyMovieClip("large_mc", 1);
with (_root.large_mc){
  _x=225;
  _y=92;
};

butt_1.onPress = function() {
  unloadMovie(_root.large_mc);
  loadMovie("http://i30.photobucket.com/albums/c315/popstalin/images/photo1_lg.jpg", _root.large_mc);
};

```

I’ve tried:

```auto
_root.large_mc.onPress = function() {
  unloadMovie(_root.large_mc);
};

```

but it doesn’t work…

I know the answer is somewhere in here but can’t quite figure it out. Help please?!?! TIA.

Link to fla:  
[http://www.popstalin.com/fark/back\_motion2a.fla](http://www.popstalin.com/fark/back_motion2a.fla)
