Swap to different instances

I load, with the help of the form, the following:

_root.loader.loadMovie(“Front_Page_Ad2.swf”);
stop();

It loads to my instance called “contents”. I than do the following:
on (release) {
_root.contents.loadMovie(“Pad_Wis.swf”);
}

As you can imagine it goes over the top of “Front_Page_Ad2.swf"
How can I swap out the movies to the instance “contents”? I have several movies that swap out by different buttons.

Bob

This link should help you out,

http://www.kirupa.com/developer/actionscript/swapdepth.htm

Regards,
Viru.

Becouse they are transperant, I was hoping that there was a command that would remove what was there before it is placed on the area of the target text area.

Bob

If you totally want to remove the swf so that it cant be seen on the stage then use unloadMovie(“movie.swf”); Just like using loadMovie, only it does the opposite.

Regards,
Viru.

Thank you. And thanks for the fast responce.

Bob

Since I use the following I will not know the name of the currant movie:

on (release) {
_root.product.loadMovie(“Pad_Lead.swf”);
}

Is there a way to remove away movie that is on the instant “product”?

Bob

Hey,

If you do
[AS]
on(release) {
_root.product.loadMovie(“a.swf”);
}
[/AS]

Then another button you have
[AS]
on(release) {
_root.product.loadMovie(“b.swf”);
}
[/AS]

Then its my belief that b.swf will just replace a.swf. i.e Flash will automatically unload a.swf then load b.swf in after it.

Regards,
Viru.