# Loading swf into a specific frame

**URL:** <https://forum.kirupa.com/t/loading-swf-into-a-specific-frame/11289>\
**Category:** Uncategorized\
**Created:** [January 15, 2003, 12:45am UTC](https://forum.kirupa.com/t/loading-swf-into-a-specific-frame/11289 "2003-01-15T00:45:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![max999](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@max999](https://forum.kirupa.com/u/max999)\
**Post date:** [January 15, 2003, 12:45am UTC](https://forum.kirupa.com/t/loading-swf-into-a-specific-frame/11289/1 "2003-01-15T00:45:20Z")

</div>

Button 6 resides in main.swf. When you press button 6, it loads pictures.swf into a level using the following syntax.

on (press) {  
loadMovieNum(“photographers.swf”, 2);  
loadMovieNum(“pictures.swf”, 3);  
unloadMovieNum(4);  
}

The pictures.swf loads and automatically we see the picture housed on the first frame. I want to be able to go to a specific frame (let’s say frame 6 in this case) in the pictures.swf. How can I control this from the button 6 in the other fla.file?

Thanks in advance for any help you can spare?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 15, 2003, 3:03am UTC](https://forum.kirupa.com/t/loading-swf-into-a-specific-frame/11289/2 "2003-01-15T03:03:58Z")

</div>

with levels i honestly dont know how to do this but if you make a empty movie clip wich loads the swf what you could do is put an instance on the empty clip ie. empty\_clip well you will something like this

on (release) {  
with (\_root.empty\_clip) {  
gotoAndPlay(6);  
}  
}  
i think this should work i cant say now cause i dont have an example here handy but try it and post your results im sure if it doesnt work one of the guys here will help you out just be patient

Grim
