# Touble with a loaded movie

**URL:** <https://forum.kirupa.com/t/touble-with-a-loaded-movie/11138>\
**Category:** flash\
**Created:** [January 12, 2003, 11:45pm UTC](https://forum.kirupa.com/t/touble-with-a-loaded-movie/11138 "2003-01-12T23:45:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zcarrington1](https://avatars.discourse-cdn.com/v4/letter/z/3ec8ea/32.png) [@zcarrington1](https://forum.kirupa.com/u/zcarrington1)\
**Post date:** [January 12, 2003, 11:45pm UTC](https://forum.kirupa.com/t/touble-with-a-loaded-movie/11138/1 "2003-01-12T23:45:00Z")

</div>

Ok, today is just

**NOT** my day.

I’m working on a simple interface in which separate movies are loaded into a movie clip in my main interface. However, when I load a certain movie I have created into the main interface, it does not work correctly. When you click on one of the photos, which contains a simple ‘goToAndStop’ command, the movie seems to freeze up.

Here is the main interface.

I will post the other movie in a reply. Save them both to the same directory and load the main interface. Click on “Band” and then when the five faces come up, click on the top left face. The movie freezes up. It works fine by itself. I cannot figure this one out.

---

<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:** [January 12, 2003, 11:50pm UTC](https://forum.kirupa.com/t/touble-with-a-loaded-movie/11138/2 "2003-01-12T23:50:26Z")

</div>

Ok, well, the other file is to big to attach. So, if you want to try and help, IM me on AOL IM. My screen name is [COLOR=red]yourweaponisgil[/COLOR]

---

<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:** [January 13, 2003, 12:21am UTC](https://forum.kirupa.com/t/touble-with-a-loaded-movie/11138/3 "2003-01-13T00:21:08Z")

</div>

place the 2nd file in a zip file and upload it here.

---

<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:** [January 13, 2003, 12:23am UTC](https://forum.kirupa.com/t/touble-with-a-loaded-movie/11138/4 "2003-01-13T00:23:30Z")

</div>

Ok, here you go…

---

<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:** [January 13, 2003, 12:39am UTC](https://forum.kirupa.com/t/touble-with-a-loaded-movie/11138/5 "2003-01-13T00:39:34Z")

</div>

Ok I looked at your file and noticed that you had this script on the thumbnail:

```php
on (press) {
	_root.gotoAndStop(45);
}

```

You used \_root. which is fine if the swf is by itself since the \_root is targeting that swf’s main timeline.

But once you load that swf into the main swf, the \_root now targets the main swf’s main timeline and not the external swf’s main timeline.

So in order to correct this problem just use \_parent instead so that it will target the external swf’s main timeline even once it’s loaded into the main swf. So your script should now look like this:

```php
on (press) {
	_parent.gotoAndStop(45);
}

```

Do that to the rest of your thumbnails as well. =)

---

<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:** [January 13, 2003, 12:46am UTC](https://forum.kirupa.com/t/touble-with-a-loaded-movie/11138/6 "2003-01-13T00:46:43Z")

</div>

GREAT! It worked. Thank you verymuch. I though it may have been because the movie was loaded into another move, but I didn’t know the code. You are a lifesaver!

Zach

---

<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:** [January 13, 2003, 12:49am UTC](https://forum.kirupa.com/t/touble-with-a-loaded-movie/11138/7 "2003-01-13T00:49:19Z")

</div>

I’m glad it worked, oh and you might want to do the same to your back buttons as well, they have the same problem. =)
