# Load external swf to certain frame

**URL:** https://forum.kirupa.com/t/load-external-swf-to-certain-frame/150458
**Category:** Uncategorized
**Created:** [June 7, 2005, 6:54pm UTC](https://forum.kirupa.com/t/load-external-swf-to-certain-frame/150458 "2005-06-07T18:54:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![beamond](https://avatars.discourse-cdn.com/v4/letter/b/e47774/32.png) [@beamond](https://forum.kirupa.com/u/beamond)
#### Post date: [June 7, 2005, 6:54pm UTC](https://forum.kirupa.com/t/load-external-swf-to-certain-frame/150458/1 "2005-06-07T18:54:56Z")

</div>

i have a site built in flash and the buttons load an extrnal swf to a layer above 0. i want button to laod home.swf to level2 and a certain frame lets say 15 for now. heres my button code

on (press) {  
if (selected == “home”) {  
break;  
} else {  
loadMovieNum(“home.swf”, 2);  
}  
selected = “home”;  
trace(selected);  
gotoAndPlay(15);  
}  
on (rollOver) {  
unloadMovieNum(1);  
loadMovieNum(“extrashome.swf”, 1);  
}  
on (rollOut) {  
unloadMovieNum(1);  
loadMovieNum(“infocenter.swf”, 1);  
}

home do i do this? i’m sure its simple but i have no idea.
