# Scope problem?

**URL:** <https://forum.kirupa.com/t/scope-problem/205281>\
**Category:** flash\
**Created:** [October 27, 2006, 4:44pm UTC](https://forum.kirupa.com/t/scope-problem/205281 "2006-10-27T16:44:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![psych](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/psych/32/2839_2.png) [@psych](https://forum.kirupa.com/u/psych)\
**Post date:** [October 27, 2006, 4:44pm UTC](https://forum.kirupa.com/t/scope-problem/205281/1 "2006-10-27T16:44:37Z")

</div>

This is a situation: i have a index.swf in which i have holder movieclip in which i load gallery.swf (where i load pictures in it’s holder mc). The thing is i used \_root in gallery.swf so when i publish it separately it works, but it doesn’t work within index.swf. I suppose there is a scope problem where \_root adresses \_root timeline of index.swf instead of gallery.swf when index.swf is published and gallery.swf loaded inside. I tried to solve this by putting:

```auto
this._lockroot=true;

```

inside of gallery.swf but now my Flash 8 player just freezes when index.swf is published and gallery.swf loaded into it but i have no idea why? What would be other solution for this problem?

thanks
