# Loadmovie headache. Aye!

**URL:** <https://forum.kirupa.com/t/loadmovie-headache-aye/60443>\
**Category:** Uncategorized\
**Created:** [August 9, 2004, 10:48pm UTC](https://forum.kirupa.com/t/loadmovie-headache-aye/60443 "2004-08-09T22:48:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![worm](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/worm/32/235_2.png) [@worm](https://forum.kirupa.com/u/worm)\
**Post date:** [August 9, 2004, 10:48pm UTC](https://forum.kirupa.com/t/loadmovie-headache-aye/60443/1 "2004-08-09T22:48:53Z")

</div>

i have some script in a movieclip in my main movie that creates an emptymovieclip and uses the loadmovie function to load a swf into it.

```auto
on (release) {
gotoAndStop ("blank");
_root.pyr.gotoAndPlay ("home");
}

```

It works fine for most imported swfs but one in particular doesnt function completely. When you press a certain button with the following script on it

```auto
on (release) {
gotoAndStop ("blank");
_root.pyr.gotoAndPlay ("home");
}

```

it doesnt execute the last line. I figured that this is because the “\_root” wouldnt be the same since its actually imported into another movie. I’ve messing around with the absolute path but nothing.

HELP!!

---

<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:** [August 9, 2004, 11:18pm UTC](https://forum.kirupa.com/t/loadmovie-headache-aye/60443/2 "2004-08-09T23:18:52Z")

</div>

If you load a movie into your main movie all actionscript referring to \_root will be targetting the main timeline of your main movie.
