# Loading an external photogallery in another swf

**URL:** <https://forum.kirupa.com/t/loading-an-external-photogallery-in-another-swf/167155>\
**Category:** flash\
**Created:** [October 25, 2005, 9:48pm UTC](https://forum.kirupa.com/t/loading-an-external-photogallery-in-another-swf/167155 "2005-10-25T21:48:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juani](https://avatars.discourse-cdn.com/v4/letter/j/f07891/32.png) [@juani](https://forum.kirupa.com/u/juani)\
**Post date:** [October 25, 2005, 9:48pm UTC](https://forum.kirupa.com/t/loading-an-external-photogallery-in-another-swf/167155/1 "2005-10-25T21:48:19Z")

</div>

Hello All!

I adapted a kirupa published excercise to build a photogallery ([http://www.kirupa.com/developer/mx/photogallery.htm](http://www.kirupa.com/developer/mx/photogallery.htm)) and I had no problems to make it works.  
Then I wanted to load this file in another swf file but now I can not make it work at all

What i´ve done is to load the photogallery swf in another swf file so I loaded  
external variables from a text file “loadVariables(“galeria.txt”, “\_root”)” and I also crated a text field “\_root.createTextField(“banner”…”.

I Suppousse that the mistake is related with the paths in the photogallery swf but iraelly can not get the clue.

Thanksa lot for your help
