Loaded swf controlling - simple but i'm stuck

hi!

i have an external “gallery.swf” loaded into “main.swf”. on the loaded “gallery.swf” i have a button, that on release should load “gallery1.swf” onto “main.swf”. in other words i want “gallery.swf” and “gallery1.swf” to be displayed next to each other, both loaded onto “main.swf”.

i have “gallery.swf” loading perfectly onto “main.swf” but i dont get the button in “gallery.swf” to trigger “gallery1.swf”.

on the main timeline of “gallery.swf” i have:


stop();

gallery1.onRelease = function () {
	gallerycontainer.unloadMovie();
	_root.createEmptyMovieClip("gallerycontainer", 1);
	loadMovie("gallery1.swf", "gallerycontainer");
	gallerycontainer._x = 310 ;
	gallerycontainer._y = 220 ;
}

the button instance is called “gallery1”. i have all files in the same folder. didnt find any matching post…

thanks for any help! :thumb: