# References and levels

**URL:** <https://forum.kirupa.com/t/references-and-levels/30570>\
**Category:** flash\
**Created:** [September 10, 2003, 6:18pm UTC](https://forum.kirupa.com/t/references-and-levels/30570 "2003-09-10T18:18:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueshift](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@blueshift](https://forum.kirupa.com/u/blueshift)\
**Post date:** [September 10, 2003, 6:18pm UTC](https://forum.kirupa.com/t/references-and-levels/30570/1 "2003-09-10T18:18:15Z")

</div>

I have one main movie which I load other submovies into. One of those submovies is a photo gallery that dynamically loads .jpg’s. The buttons to load each picture are in a movie clip. The function to load the pictures (loadFile()) is on the \_root level of the photo gallery movie.

\_root.loadFile(“pic\_name”); obviously works in the stand alone gallery, but obviousy not inside the main movie. So I made the reference this.loadFile(""); that call doesnt work in either situation, I also tried just calling loadFile with no specifier and I get nothing. If a file would be helpful please let me know and I will provide one. Otherwise I’m just wondering how to call loadFile so that it properly works.

Thanks.
