_parent loadmovie

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:

 
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

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…

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 ;
}

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

thanks gumby19! you saved my day! :thumb: