# Unload / remove / movieclip issue

**URL:** <https://forum.kirupa.com/t/unload-remove-movieclip-issue/219994>\
**Category:** Uncategorized\
**Created:** [March 21, 2007, 7:11pm UTC](https://forum.kirupa.com/t/unload-remove-movieclip-issue/219994 "2007-03-21T19:11:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitras](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nitras/32/1475_2.png) [@nitras](https://forum.kirupa.com/u/nitras)\
**Post date:** [March 21, 2007, 7:11pm UTC](https://forum.kirupa.com/t/unload-remove-movieclip-issue/219994/1 "2007-03-21T19:11:52Z")

</div>

Hello all, hopefully someone can shed a light on this.

i found a nice piece of code to display some pictures.

now i have a strange problem here.

(ps: everything happens on the maintimeline)

when a user clicks the photobutton this code triggers:

```auto

this.createEmptyMovieClip("photo"+photoNum, getNextHighestDepth());
    this["photo"+photoNum].attachMovie("photo", "photo", getNextHighestDepth());

```

now the movieclip “photo” consist on another movieclip that does the actual picture display/loading with some AS\> photoHolder \< loads the actual picture

so i thought ok, logically its \_root.photo.photoHolder.removeMovieClip();  
maybe even \_root[“photo” + photoNum].photoHolder.removeMovieClip();  
or \_root.photo.removeMovieClip();  
etc

i tried numerous other structures but i just can’t get it to work, for some reasons i just can’t unload the movieclip that shows the picture.

can anyone please give me a hint here? i tried posting it on other fora, but to no avail for now.

thanks heaps!
