# Loaded swf controlling - simple but i'm stuck

**URL:** <https://forum.kirupa.com/t/loaded-swf-controlling-simple-but-im-stuck/122228>\
**Category:** Uncategorized\
**Created:** [September 11, 2004, 7:19pm UTC](https://forum.kirupa.com/t/loaded-swf-controlling-simple-but-im-stuck/122228 "2004-09-11T19:19:25Z")\
**Posts on this page:** 1\
**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 11, 2004, 7:19pm UTC](https://forum.kirupa.com/t/loaded-swf-controlling-simple-but-im-stuck/122228/1 "2004-09-11T19:19:25Z")

</div>

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:

```auto

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:
