# \[MX\] loadMovie \_root reference query

**URL:** <https://forum.kirupa.com/t/mx-loadmovie--root-reference-query/140765>\
**Category:** Uncategorized\
**Created:** [March 14, 2005, 10:02am UTC](https://forum.kirupa.com/t/mx-loadmovie--root-reference-query/140765 "2005-03-14T10:02:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theMonitor](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@theMonitor](https://forum.kirupa.com/u/theMonitor)\
**Post date:** [March 14, 2005, 10:02am UTC](https://forum.kirupa.com/t/mx-loadmovie--root-reference-query/140765/1 "2005-03-14T10:02:34Z")

</div>

* * *

i’m loading movies into a movieclip in my main movie using the loadMovie command.

each movie that’s loaded has actionScript that references variables and functions on the \_root, which means that when the movie is loaded into another movieclip the \_root becomes the \_root of the movie it’s loaded into rather than the \_root of the movie itself.

is there any way round this problem? the only solution i can think of is to replace all the references to \_root in the movie with \_parent.\_parent etc, to get to its own main timeline rather than that of the movie into which it’s loading.

this is inconvenient, as i have upwards of 30 movies i want to load into the main movie (not all at once, obviously) and i don;t want to have to go through each one changing the actionSctipt.

would it help if i loaded the movies into levels rather than movieclips?

thanks in advance to anyone who can help

**andy.**
