# \_parent loadmovie

**URL:** <https://forum.kirupa.com/t/-parent-loadmovie/65184>\
**Category:** flash\
**Created:** [September 23, 2004, 7:54pm UTC](https://forum.kirupa.com/t/-parent-loadmovie/65184 "2004-09-23T19:54:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lookupthere](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@lookupthere](https://forum.kirupa.com/u/lookupthere)\
**Post date:** [September 23, 2004, 7:54pm UTC](https://forum.kirupa.com/t/-parent-loadmovie/65184/1 "2004-09-23T19:54:50Z")

</div>

hi everybody!

i have a button in a loaded movie, which on release is supposed to create a new empty clip on the parent MC and then load another movie into that empty MC. somehow it’s just not loading the new MC when i test the parent movie. in the last frame of the loaded movie i have:

```auto
 
gallery1.onRelease = function () {
	_parent.gallerycontainer.unloadMovie();
	_parent.createEmptyMovieClip("gallerycontainer", 1);
	gallerycontainer.loadMovie("gallery1.swf", 1);
	gallerycontainer._x = -50 ;
	gallerycontainer._y = -50 ;
}

```

i’ve tried everything back and forth, and i’m getting desperate…

thanks, martin

---

<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:** [September 23, 2004, 8:19pm UTC](https://forum.kirupa.com/t/-parent-loadmovie/65184/2 "2004-09-23T20:19:23Z")

</div>

why do you have the unloadMovie command in there? It probably is loading it but unloading at the same time so that is basically overiding the loadMovie…

---

<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:** [September 23, 2004, 8:31pm UTC](https://forum.kirupa.com/t/-parent-loadmovie/65184/3 "2004-09-23T20:31:42Z")

</div>

try this:

gallery1.onRelease = function () {  
\_parent.gallerycontainer.unloadMovie();  
\_parent.createEmptyMovieClip(“gallerycontainer”, 1);  
\_parent.gallerycontainer.loadMovie(“gallery1.swf”, 1);  
\_parent.gallerycontainer.\_x = -50 ;  
\_parent.gallerycontainer.\_y = -50 ;  
}

---

<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:** [September 23, 2004, 8:58pm UTC](https://forum.kirupa.com/t/-parent-loadmovie/65184/4 "2004-09-23T20:58:37Z")

</div>

sometimes the easiest things are the hardest to find… slam’n’a’dunk for Gumby!

---

<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:** [September 23, 2004, 9:43pm UTC](https://forum.kirupa.com/t/-parent-loadmovie/65184/5 "2004-09-23T21:43:24Z")

</div>

thanks gumby19! you saved my day! :thumb:
