# Parent swf replaces loaded swf's \_root ? A WorkAround

**URL:** <https://forum.kirupa.com/t/parent-swf-replaces-loaded-swfs--root-a-workaround/188364>\
**Category:** flash\
**Created:** [May 7, 2006, 1:03am UTC](https://forum.kirupa.com/t/parent-swf-replaces-loaded-swfs--root-a-workaround/188364 "2006-05-07T01:03:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidOrtiz](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@DavidOrtiz](https://forum.kirupa.com/u/DavidOrtiz)\
**Post date:** [May 7, 2006, 1:03am UTC](https://forum.kirupa.com/t/parent-swf-replaces-loaded-swfs--root-a-workaround/188364/1 "2006-05-07T01:03:31Z")

</div>

Hey guys, I got a preloader swf and inside this preloader swf i load another swf, site.swf.

inside site.swf, i have several references to \_root.mc1.and so on.

once i load site.swf into the preloader.swf, all AS that referred to \_root.mc1 seems to no longer work.

The way i’m loading site.swf into preloader.swf is using loadMovieClip command and i should note that im loading site.swf into a container MC.

now i know, well if u load site.swf into the container mc, that’s why all the references in site.swf that say \_root.mc1 no longer work because it’s really \_root.container.mc1 now.

im having trouble thinking of way of fixing this instead of going all through my site.swf and replacing \_root with this.\_parent and etc.

any ideas? Is there a better way to load the swf into the preloader swf and keep my code untouched?
