Loadingmovies in full flash site

Hello, everbody!
I’m making a full flash website (or I am at least trying to :stuck_out_tongue: ). 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!!!

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

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!!

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! :slight_smile:

thank you!