# Loadingmovies in full flash site

**URL:** https://forum.kirupa.com/t/loadingmovies-in-full-flash-site/16481
**Category:** Uncategorized
**Created:** [March 25, 2003, 5:00pm UTC](https://forum.kirupa.com/t/loadingmovies-in-full-flash-site/16481 "2003-03-25T17:00:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hihabyte](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@hihabyte](https://forum.kirupa.com/u/hihabyte)
#### Post date: [March 25, 2003, 5:00pm UTC](https://forum.kirupa.com/t/loadingmovies-in-full-flash-site/16481/1 "2003-03-25T17:00:07Z")

</div>

Hello, everbody!  
I’m making a full flash website (or I am at least trying to 😛 ). So I have one main design, with a main ‘host’ movie clip in which I want to load all the content. For this, I want to load external swf’s into this ‘host’ movieclip.  
Now, I know how to do that, but the problem is how to load a new one into the host, with a button from a swf that is already loaded in the host clip.

For example: An swf called ‘text1’ is loaded into my host clip. In this ‘text1’, there is a link(button) to the next page (‘text2’). So when I push the button, I want ‘text1’ to unload and I want ‘text2’ to take it’s place in the host clip.

I hope you guys understand what I mean. And I hope you can tell me how to do this!!!

THANX!!!

---

<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: [March 25, 2003, 5:15pm UTC](https://forum.kirupa.com/t/loadingmovies-in-full-flash-site/16481/2 "2003-03-25T17:15:53Z")

</div>

If i understand correctly if u just use

on (release) {  
\_root.contents.loadMovie(“text2.swf”);  
}

in the actions of the button it should load the text2 movie

---

<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: [March 25, 2003, 5:17pm UTC](https://forum.kirupa.com/t/loadingmovies-in-full-flash-site/16481/3 "2003-03-25T17:17:24Z")

</div>

sorry , posted that b4 i finished!!

the part where it says contents is the instance name for the empty movie clip on the main frame, so in your case it would be

\_root.host.loadMovie(“SWFName.swf”);

Hope this helps!!

---

<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: [March 25, 2003, 5:48pm UTC](https://forum.kirupa.com/t/loadingmovies-in-full-flash-site/16481/4 "2003-03-25T17:48:20Z")

</div>

Ooh, I thought the \_root would refer to the text1-movie itself, but now I understand that at runtime the \_root is the ‘master’ movie in which all others are embedded…  
Very helpful, indeed! 🙂

thank you!
