# \[FMX\]Load movie in container with fade in fade out?

**URL:** https://forum.kirupa.com/t/fmx-load-movie-in-container-with-fade-in-fade-out/120878
**Category:** Uncategorized
**Created:** [August 28, 2004, 5:36am UTC](https://forum.kirupa.com/t/fmx-load-movie-in-container-with-fade-in-fade-out/120878 "2004-08-28T05:36:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)
#### Post date: [August 28, 2004, 5:36am UTC](https://forum.kirupa.com/t/fmx-load-movie-in-container-with-fade-in-fade-out/120878/1 "2004-08-28T05:36:48Z")

</div>

Hi,

I have a menu (mc\_menu) with 6 button mc’s (btn\_home, btn\_about, …btn\_contact) I also have 6 containerson the stage (content\_home, content\_about, …content\_contact)

Right now I’m loading different external swf’s(home, about,…contact) with the following AS code:

```auto
function pagina(page) {
showContent(page);
}
function showContent(page) {
var c = this["content_"+page];
for (var i in this) {
if (this*._name.substr(0, 8) == "content_") {
this*._visible = (this*._name.substr(8) == page);
c.loadMovie(page+".swf");
}
loadingPage = page;
}
}

```

and on the buttons I call that functions:

```auto
function setButton() {
for (var i in menuMc) {
if (menuMc*._name.substr(0, 4) == "btn_") {
clip = menuMc*;
//RollOver and RollOut stuf goes here
clip.onRelease = function() {
	[color=red]pagina(this._name.substr(4));[/color]
};
}
}
}

```

But I want the external swf’s to load in just one container with fade in and fade out. How can I reach this?

Thanks in advance
