# Problem

**URL:** https://forum.kirupa.com/t/problem/20289
**Category:** Uncategorized
**Created:** [May 7, 2003, 4:38am UTC](https://forum.kirupa.com/t/problem/20289 "2003-05-07T04:38:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HULKRULES](https://avatars.discourse-cdn.com/v4/letter/h/ac8455/32.png) [@HULKRULES](https://forum.kirupa.com/u/HULKRULES)
#### Post date: [May 7, 2003, 4:38am UTC](https://forum.kirupa.com/t/problem/20289/1 "2003-05-07T04:38:52Z")

</div>

I need help with some coding?  
I have created a SWF file called indexflash, which holds my main navigation. The navigation loads external SWF’s into the main SWF, for example profile loads into indexflash.

This is the code I used to load the external SWF’s:

on (press) {  
\_root.body.loadMovie(“home.swf”);   
}

How do I load another external SWF into my profile SWF?

Thankyou.

---

<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: [May 7, 2003, 4:44am UTC](https://forum.kirupa.com/t/problem/20289/2 "2003-05-07T04:44:56Z")

</div>

When I need to load multiple movies externally I usually use

first button :  
on (press) {  
loadMovieNum(“home.swf”, 1);  
}

second button : (to overwrite first swf when pressed)  
on (press) {  
loadMovieNum(“two.swf”, 1);  
}

The second button will now erase the first loaded movie in level1.  
If you want placement for these movies put a

this.\_x = 100  
this.\_y = 100

in the FIRST keyframe of the external .swf’s.  
For multiple movies at a time you can just change the level they load onto . If you want to load to ROOT with loadMovieNum just load to level 0

Example:

on (press) {  
loadMovieNum(“home.swf”, 0);  
}

Hope this answers your question.  
:love: ~ Seretha

---

<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: [May 7, 2003, 5:07am UTC](https://forum.kirupa.com/t/problem/20289/3 "2003-05-07T05:07:54Z")

</div>

Thanks for your reply Seretha, I’ll try your method out.
