# Loading photo gallery into swf thats in swf

**URL:** <https://forum.kirupa.com/t/loading-photo-gallery-into-swf-thats-in-swf/102997>\
**Category:** Uncategorized\
**Created:** [February 29, 2004, 6:56pm UTC](https://forum.kirupa.com/t/loading-photo-gallery-into-swf-thats-in-swf/102997 "2004-02-29T18:56:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![firstborn01](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/firstborn01/32/346_2.png) [@firstborn01](https://forum.kirupa.com/u/firstborn01)\
**Post date:** [February 29, 2004, 6:56pm UTC](https://forum.kirupa.com/t/loading-photo-gallery-into-swf-thats-in-swf/102997/1 "2004-02-29T18:56:45Z")

</div>

what i would like to do is load the photo gallery template into an .swf that is to be loaded into my main .swf. sound confusing enough? yea, i know. so i know that i need to change the \_root in the action script but i don’t know what to chage it to. in my main swf here is the action script i am using for the button…

[AS]  
onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {  
this.nextFrame();  
} else {  
this.prevFrame();  
}  
}

on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “news”;  
\_parent.container.loadMovie(“news.swf”);  
} else if (\_root.currMovie != “news”) {  
if (\_parent.container.\_currentframe == \_parent.container.midframe) {  
\_root.currMovie = “news”;  
\_parent.container.play();  
}  
}  
}  
[/AS]

in my 2nd swf i am just using a regular button. so anyway you can get it to load will be fine.

thanks in advance for your help.

Dave
